Commit 903caa3b authored by segfault's avatar segfault

Reduce log level of verbose debug messages

parent 6e101488
......@@ -121,7 +121,7 @@ class SystemdManager(object):
# This blocks until there is a new line on stdout
line = self.monitor.stdout.readline()
print("%r" % line)
logger.log(5, "%r" % line)
if line.startswith('‣'):
message = self._read_message(line)
......@@ -136,7 +136,7 @@ class SystemdManager(object):
while line != '\n':
message += line
line = self.monitor.stdout.readline()
print("%r" % line)
logger.log(5, "%r" % line)
return message
def _update_status(self):
......@@ -160,8 +160,8 @@ class SystemdManager(object):
def _get_state(self) -> (str, str):
output = sh.systemctl("--no-pager", "-M", self.container, "show", "-p", "ActiveState,SubState", self.service)
logger.debug("Output of `systemctl -M %s show -p ActiveState -p SubState %s`: %s",
self.container, self.service, output)
logger.log(5, "Output of `systemctl -M %s show -p ActiveState -p SubState %s`: %s",
self.container, self.service, output)
lines = output.split()
active_state = lines[0].split('=')[-1]
sub_state = lines[1].split('=')[-1]
......
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