perf: 自动化任务执行错误日志在DEBUG_DEV下打印

pull/10472/head
jiangweidong 2023-05-16 17:20:15 +08:00 committed by Jiangjie.Bai
parent 4ce2d991dd
commit cfc91047fd
1 changed files with 2 additions and 1 deletions

View File

@ -224,7 +224,8 @@ class BasePlaybookManager:
pass
def on_host_error(self, host, error, result):
print('host error: {} -> {}'.format(host, error))
if settings.DEBUG_DEV:
print('host error: {} -> {}'.format(host, error))
def on_runner_success(self, runner, cb):
summary = cb.summary