mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-05 16:26:14 +00:00
perf: 自动化任务执行错误日志在DEBUG_DEV下打印
This commit is contained in:
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
Block a user