From a687644dcb3a17a6db37bef783efe765f4a82a16 Mon Sep 17 00:00:00 2001 From: almaz Date: Wed, 25 Oct 2023 23:56:23 +0200 Subject: [PATCH] update logging --- supervisely/train/src/sly_train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisely/train/src/sly_train.py b/supervisely/train/src/sly_train.py index 5cda62a4b42b..2eb92fc525ed 100644 --- a/supervisely/train/src/sly_train.py +++ b/supervisely/train/src/sly_train.py @@ -130,7 +130,7 @@ def train(api: sly.Api, task_id, context, state, app_logger): except Exception as e: msg = f"Something went wrong. Find more info in the app logs. {str(e)}" my_app.show_modal_window(msg, level="error", log_message=False) - sly.logger.error(msg, exc_info=True, extra={ 'exc_str': str(e)}) + sly.logger.error(repr(e), exc_info=True, extra={ 'exc_str': str(e)}) api.task.set_output_error(task_id, msg) api.app.set_field(task_id, "state.started", False)