Skip to content

Commit

Permalink
Enable logging after exit with atexit hook.
Browse files Browse the repository at this point in the history
Fixes #26687
  • Loading branch information
maleadt committed Apr 4, 2018
1 parent a55c280 commit 1305ab3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stdlib/Logging/src/Logging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ include("ConsoleLogger.jl")

function __init__()
global_logger(ConsoleLogger(stderr))
atexit() do
logger = global_logger()
if isa(logger, ConsoleLogger)
global_logger(ConsoleLogger(Core.stderr, min_enabled_level(logger)))
end
end
end

end

0 comments on commit 1305ab3

Please sign in to comment.