[AIRFLOW-5425] Use logging not printing in LoggingCommandExecutor (#6032)
This will show proper message in log (yellow color) which will be harder to miss.
This commit is contained in:
Родитель
168a45a762
Коммит
0ffc14c30a
|
@ -39,7 +39,7 @@ class LoggingCommandExecutor(LoggingMixin):
|
|||
self.log.info("Stdout: {}".format(output))
|
||||
self.log.info("Stderr: {}".format(err))
|
||||
if retcode:
|
||||
print("Error when executing '{}'".format(" ".join(cmd)))
|
||||
self.log.warning("Error when executing %s", " ".join(cmd))
|
||||
return retcode
|
||||
|
||||
def check_output(self, cmd):
|
||||
|
|
Загрузка…
Ссылка в новой задаче