Commit 21d87203 authored by segfault's avatar segfault

Add debug output

parent 944d49d2
......@@ -26,9 +26,11 @@ class SystemdManager(object):
self.parser = None # type: Thread
def restart(self):
logger.debug("Restarting %s", self.id)
sh.systemctl("-M", self.container, "restart", self.service)
def stop(self):
logger.debug("Stopping %s", self.id)
sh.systemctl("-M", self.container, "stop", self.service)
def is_running(self) -> bool:
......@@ -42,7 +44,7 @@ class SystemdManager(object):
return active_state == "active" and sub_state == "running"
def daemon_reload(self):
logger.debug("Reloading systemd manager configuration")
logger.debug("Reloading systemd manager configuration of %s", self.container)
sh.systemctl("-M", self.container, "daemon-reload")
def start_monitoring(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment