From 636b6690d6cc5dda38be059a7e353e6e61fc18ff Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Fri, 25 Nov 2011 01:11:52 +0100 Subject: [PATCH] Add the signal name to the debug message. --- rq/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/worker.py b/rq/worker.py index c958d49..f9d67e7 100644 --- a/rq/worker.py +++ b/rq/worker.py @@ -208,7 +208,7 @@ class Worker(object): signal.signal(signal.SIGTERM, request_force_stop) if self.is_horse: - self.log.debug('Ignoring interrupt.') + self.log.debug('Ignoring signal %s.' % signal_name(signum)) return self.log.warning('Warm shut down. Press Ctrl+C again for a cold shutdown.')