From 3ba9405c8cdac8d0c2b57a2d3ee207346bd6e67d Mon Sep 17 00:00:00 2001 From: almaz Date: Wed, 25 Oct 2023 09:59:46 +0200 Subject: [PATCH] update logs --- supervisely/train/src/sly_train.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/supervisely/train/src/sly_train.py b/supervisely/train/src/sly_train.py index 7aa0675104c6..63a7a82769d5 100644 --- a/supervisely/train/src/sly_train.py +++ b/supervisely/train/src/sly_train.py @@ -120,9 +120,7 @@ def train(api: sly.Api, task_id, context, state, app_logger): upload_artifacts(g.local_artifacts_dir, g.remote_artifacts_dir) set_task_output() except Exception as e: - msg = f"Oops! Something went wrong, please try again or contact tech support. Find more info in the app logs. Error: {repr(e)}" - sly.logger.error(msg, exc_info=True, extra={ 'exc_str': str(e)}) - my_app.show_modal_window(msg, level="error") + my_app.show_modal_window(f"Something went wrong. Find more info in the app logs. Error: {str(e)}", level="error") api.app.set_field(task_id, "state.started", False) # stop application