Univention Bugzilla – Attachment #9221: logging.patch for bug #44867
cmd_exit = cmd_proc.wait()
if cmd_out:
self.log("STDOUT of {}: {}".format(cmd, cmd_out))
MODULE.process("STDOUT of {}: {}".format(cmd, cmd_out))
if cmd_err:
self.log("STDERR of {}: {}".format(cmd, cmd_err))
MODULE.error("STDERR of {}: {}".format(cmd, cmd_err))
if cmd_exit == 0:
return True