mirror of https://github.com/jumpserver/jumpserver
perf: 自动化任务执行错误日志在DEBUG_DEV下打印
parent
4ce2d991dd
commit
cfc91047fd
|
@ -224,7 +224,8 @@ class BasePlaybookManager:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def on_host_error(self, host, error, result):
|
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):
|
def on_runner_success(self, runner, cb):
|
||||||
summary = cb.summary
|
summary = cb.summary
|
||||||
|
|
Loading…
Reference in New Issue