Print which file descriptor we are talking to (or are receiving from).
This commit is contained in:
parent
95c4af02f0
commit
a2f5442565
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user