Add the signal name to the debug message.

main
Vincent Driessen 13 years ago
parent a154ef0bd9
commit 636b6690d6

@ -208,7 +208,7 @@ class Worker(object):
signal.signal(signal.SIGTERM, request_force_stop) signal.signal(signal.SIGTERM, request_force_stop)
if self.is_horse: if self.is_horse:
self.log.debug('Ignoring interrupt.') self.log.debug('Ignoring signal %s.' % signal_name(signum))
return return
self.log.warning('Warm shut down. Press Ctrl+C again for a cold shutdown.') self.log.warning('Warm shut down. Press Ctrl+C again for a cold shutdown.')

Loading…
Cancel
Save