3rd iteration of logging cleanup.

This commit is contained in:
Darko Poljak 2017-06-29 09:22:59 +02:00 committed by Steven Armstrong
commit a722f3c634
9 changed files with 15 additions and 14 deletions

View file

@ -192,7 +192,6 @@ class Local(object):
Return the output as a string.
"""
self.log.trace("Local run: %s", command)
assert isinstance(command, (list, tuple)), (
"list or tuple argument expected, got: %s" % command)
@ -211,6 +210,7 @@ class Local(object):
message = cdist.message.Message(message_prefix, self.messages_path)
env.update(message.env)
self.log.trace("Local run: %s", command)
try:
if save_output:
output, errout = exec_util.call_get_output(command, env=env)