Skip to content

Commit 6d118cf

Browse files
committed
use min_enabled_level()
.min_level seems internal, while min_enabled_level() is part of the standard interface: https://docs.julialang.org/en/v1/stdlib/Logging/#Logging.min_enabled_level
1 parent 16bf2eb commit 6d118cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ for level in [:trace, :debug, :info, :warn, :error, :fatal]
1010
macrocall.args[1] = Symbol($"@$level")
1111
quote
1212
old_logger = global_logger()
13-
global_logger(Logging.ConsoleLogger(Core.stderr, old_logger.min_level))
13+
global_logger(Logging.ConsoleLogger(Core.stderr, Logging.min_enabled_level(old_logger)))
1414
ret = $(esc(macrocall))
1515
global_logger(old_logger)
1616
ret

0 commit comments

Comments
 (0)