Skip to content

Commit

Permalink
update logs
Browse files Browse the repository at this point in the history
  • Loading branch information
almazgimaev committed Oct 25, 2023
1 parent 0453bdd commit 3ba9405
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions supervisely/train/src/sly_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ba9405

Please sign in to comment.