From 9a0c683d53392fbc93a78580fe7c3d3bf4fd0c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Wr=C3=B3bel?= Date: Sun, 20 Nov 2016 13:54:40 +0100 Subject: [PATCH] Decrease severity of startup/shutdown log messages Warnings should indicate potential issues. Starting and shutting down process in response to user request seem to call for information-level messages. --- daemonize.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemonize.py b/daemonize.py index 92759b6..81407b8 100644 --- a/daemonize.py +++ b/daemonize.py @@ -60,14 +60,14 @@ def sigterm(self, signum, frame): """ These actions will be done after SIGTERM. """ - self.logger.warn("Caught signal %s. Stopping daemon." % signum) + self.logger.info("Caught signal %s. Stopping daemon." % signum) sys.exit(0) def exit(self): """ Cleanup pid file at exit. """ - self.logger.warn("Stopping daemon.") + self.logger.info("Stopping daemon.") os.remove(self.pid) sys.exit(0) @@ -239,7 +239,7 @@ def start(self): signal.signal(signal.SIGTERM, self.sigterm) atexit.register(self.exit) - self.logger.warn("Starting daemon.") + self.logger.info("Starting daemon.") try: self.action(*privileged_action_result)