From 3b6e03046565a739a3beb1c802cfa82bd58d6f4d Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Wed, 19 Jan 2022 11:57:27 +0100 Subject: [PATCH] OP-2399 - moved error at the beginning of the log --- openpype/lib/remote_publish.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openpype/lib/remote_publish.py b/openpype/lib/remote_publish.py index 8074b2d1127..f0d73e2afe8 100644 --- a/openpype/lib/remote_publish.py +++ b/openpype/lib/remote_publish.py @@ -95,7 +95,8 @@ def publish_and_log(dbcon, _id, log, close_plugin_name=None): close host app """ # Error exit as soon as any error occurs. - error_format = "Failed {plugin.__name__}: {error} -- {error.traceback}" + error_format = "Failed {plugin.__name__}: {error} -- {error.traceback}\n" + error_format += "-" * 80 + "\n" close_plugin = _get_close_plugin(close_plugin_name, log) @@ -111,7 +112,7 @@ def publish_and_log(dbcon, _id, log, close_plugin_name=None): if result["error"]: log.error(error_format.format(**result)) uninstall() - log_lines.append(error_format.format(**result)) + log_lines = [error_format.format(**result)] + log_lines dbcon.update_one( {"_id": _id}, {"$set":