forked from jeff-regier/Celeste.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a logger that includes exception traceback, and wrap `Thread.@thr…
…eads` loops with it * `Log.exception()` is like `Log.error()`, but includes exception information. Inspired by Python's `logging.exception()` and such. * Since exceptions inside threads are silently swallowed right now (JuliaLang/julia#17532), always wrap the body of a `Thread.@threads` call with a try-catch that manually logs the exception.
- Loading branch information
1 parent
2c69807
commit 0ae9e0d
Showing
3 changed files
with
53 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters