Adding logging when a SIGUSR2 signal is received