Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
add temp. debug infos
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMay committed Mar 23, 2021
1 parent 7388b72 commit 45608a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mltb/omlflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ def objective_decorator(trial):

return result
except: # noqa: E722

# TODO: this is just temp. code - remove later
_logger.error(
"### exception raised ###",
exc_info=True,
)

exc_type, exc_value, exc_traceback = sys.exc_info()
exc_text = "".join(traceback.format_exception(exc_type, exc_value, exc_traceback))
self.set_tag("exception", exc_text)
Expand Down

0 comments on commit 45608a0

Please sign in to comment.