3rd iteration of logging cleanup.
This commit is contained in:
parent
127c05a882
commit
a722f3c634
9 changed files with 15 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue