From ccd288a156c2b8df8693b3b2c7375f935459d09e Mon Sep 17 00:00:00 2001 From: Karchnu Date: Thu, 26 Nov 2020 06:56:20 +0100 Subject: [PATCH] Take into account connections and disconnections. --- src/main.cr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cr b/src/main.cr index 4d925fd..bd321c1 100644 --- a/src/main.cr +++ b/src/main.cr @@ -152,6 +152,10 @@ class AuthD::Service < IPC::Server when IPC::Exception Baguette::Log.error "IPC::Exception" 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 Baguette::Log.error "Not implemented behavior for event: #{event}" end