From 8c5b2930b37f7cf6fd0a44e4283bf2c79fbc13bd Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sun, 28 Dec 2014 14:37:00 +0100 Subject: Log services to restart in apt pipeline too All other code paths log this at debug level. We should to so too to get improved output when using unattended-upgrades. --- whatmaps/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whatmaps/command.py b/whatmaps/command.py index e649cbb..0a4eb7b 100755 --- a/whatmaps/command.py +++ b/whatmaps/command.py @@ -59,7 +59,7 @@ def write_cmd_file(services, cmd_file, distro): out = open(cmd_file, 'w') print('#! /bin/sh', file=out) for service in services: - logging.debug("Need to restart %s", service) + logging.info("Need to restart '%s'", service) print(" ".join(distro.restart_service_cmd(service)), file=out) out.close() os.chmod(cmd_file, 0o755) @@ -225,7 +225,7 @@ def main(argv): write_cmd_file(services, options.print_cmds, distro) else: for service in services: - logging.info("Restarting %s" % service) + logging.info("Restarting '%s'" % service) distro.restart_service(service) elif services: print("Services that possibly need to be restarted:") -- cgit v1.2.3