Print which file descriptor we are talking to (or are receiving from).

master
Philippe Pittoli 2023-07-02 12:11:31 +02:00
parent 95c4af02f0
commit a2f5442565
1 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ class AuthD::Service < IPC
end
request_name = request.class.name.sub /^AuthD::Request::/, ""
Baguette::Log.debug "<< #{request_name}"
Baguette::Log.debug "<< #{request_name} (FROM: #{event.fd})"
response = begin
request.handle self, event.fd
@ -141,9 +141,9 @@ class AuthD::Service < IPC
response_name = response.class.name.sub /^AuthD::Response::/, ""
if response.is_a? AuthD::Response::Error
Baguette::Log.warning ">> #{response_name} (#{response.reason})"
Baguette::Log.warning ">> #{response_name} (#{response.reason}) (TO: #{event.fd})"
else
Baguette::Log.debug ">> #{response_name} (Total duration: #{duration})"
Baguette::Log.debug ">> #{response_name} (TO: #{event.fd}) (Total duration: #{duration})"
end
end