Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox authored Aug 31, 2023
1 parent d0c385e commit 2f72a09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/CompositionalLoggers/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
function comp_shouldlog(logger, level, _module, group, id)
(min_enabled_level(logger) <= level && shouldlog(logger, level, _module, group, id)) ||
Base.CoreLogging.env_override_minlevel(group, _module)
# `env_override_minlevel` is the internal function that makes JULIA_DEBUG environment variable work
end

# For checking if child logger will take the message you are sending
Expand Down
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,9 @@ end
# Define a module for testing conditional debug messages
module JuliaDebugTest

function debug_message(str)
@debug str
end
function debug_message(str)
@debug str
end

end

Expand Down

0 comments on commit 2f72a09

Please sign in to comment.