@@ -186,17 +186,17 @@ def run
186186 # I thought this was the default... but it doesn't always raise an exception unless you do this explicitly.
187187 # We use `Thread.current.raise(...)` so that exceptions are filtered through `Thread.handle_interrupt` correctly.
188188 interrupt_action = Signal . trap ( :INT ) do
189- # $stderr.puts "Received INT signal, terminating...", caller
189+ $stderr. puts "Received INT signal, terminating..." , caller
190190 ::Thread . current . raise ( Interrupt )
191191 end
192192
193193 terminate_action = Signal . trap ( :TERM ) do
194- # $stderr.puts "Received TERM signal, terminating...", caller
194+ $stderr. puts "Received TERM signal, terminating..." , caller
195195 ::Thread . current . raise ( Terminate )
196196 end
197197
198198 hangup_action = Signal . trap ( :HUP ) do
199- # $stderr.puts "Received HUP signal, restarting...", caller
199+ $stderr. puts "Received HUP signal, restarting..." , caller
200200 ::Thread . current . raise ( Hangup )
201201 end
202202
@@ -208,6 +208,7 @@ def run
208208 rescue SignalException => exception
209209 if handler = @signals [ exception . signo ]
210210 begin
211+ Console . debug ( self , "Invoking signal handler for #{ exception . signo } ..." , handler : handler )
211212 handler . call
212213 rescue SetupError => error
213214 Console . error ( self ) { error }
0 commit comments