Skip to content

Commit

Permalink
Merge pull request #48 from ederag/min_enabled_level
Browse files Browse the repository at this point in the history
use min_enabled_level()
  • Loading branch information
pfitzseb authored Mar 30, 2021
2 parents 16bf2eb + 6d118cf commit c2ca629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ for level in [:trace, :debug, :info, :warn, :error, :fatal]
macrocall.args[1] = Symbol($"@$level")
quote
old_logger = global_logger()
global_logger(Logging.ConsoleLogger(Core.stderr, old_logger.min_level))
global_logger(Logging.ConsoleLogger(Core.stderr, Logging.min_enabled_level(old_logger)))
ret = $(esc(macrocall))
global_logger(old_logger)
ret
Expand Down

0 comments on commit c2ca629

Please sign in to comment.