Skip to content

Commit

Permalink
check logger before closing polyglot logger
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusjusten committed Mar 15, 2024
1 parent 90e3a49 commit 63c7a0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/logs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ function fatal_error(
@logmsg FATAL_ERROR_LEVEL msg

logger = Logging.global_logger()
close_polyglot_logger(logger)
if logger isa LoggingExtras.TeeLogger
close_polyglot_logger(logger)
end
throw(exception)
return nothing
end
Expand Down

0 comments on commit 63c7a0c

Please sign in to comment.