Take into account connections and disconnections.
This commit is contained in:
parent
9b33f686bd
commit
ccd288a156
1 changed files with 4 additions and 0 deletions
|
@ -152,6 +152,10 @@ class AuthD::Service < IPC::Server
|
||||||
when IPC::Exception
|
when IPC::Exception
|
||||||
Baguette::Log.error "IPC::Exception"
|
Baguette::Log.error "IPC::Exception"
|
||||||
pp! event
|
pp! event
|
||||||
|
when IPC::Event::Connection
|
||||||
|
Baguette::Log.debug "Connection from #{event.fd}" if @configuration.print_ipc_connection
|
||||||
|
when IPC::Event::Disconnection
|
||||||
|
Baguette::Log.debug "Disconnection from #{event.fd}" if @configuration.print_ipc_disconnection
|
||||||
else
|
else
|
||||||
Baguette::Log.error "Not implemented behavior for event: #{event}"
|
Baguette::Log.error "Not implemented behavior for event: #{event}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue