aboutsummaryrefslogtreecommitdiff
path: root/whatmaps
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-12-28 14:37:00 +0100
committerGuido Günther <agx@sigxcpu.org>2014-12-28 14:52:33 +0100
commit8c5b2930b37f7cf6fd0a44e4283bf2c79fbc13bd (patch)
tree960879dba0a5abcabeadd445a16c1dcf94045fc7 /whatmaps
parent506e87c479fb181b800c4bfdb8ca018f1a1bb6c1 (diff)
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.
Diffstat (limited to 'whatmaps')
-rwxr-xr-xwhatmaps/command.py4
1 files 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:")