Skip to content

Commit

Permalink
Merge pull request #5 from viniciusjusten/vj/close-logger-before-fata…
Browse files Browse the repository at this point in the history
…l-error

close logger before fatal error
  • Loading branch information
guilhermebodin authored Dec 4, 2023
2 parents f42692b + a1da907 commit c539919
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/logs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ function fatal_error(
msg::AbstractString;
exception::Exception = ErrorException("Fatal error"),
)
logger = Logging.global_logger()
close_polyglot_logger(logger)

@logmsg FatalErrorLevel msg
throw(exception)
return nothing
Expand Down

0 comments on commit c539919

Please sign in to comment.