From 2f72a099df0803668ba4ef1217227b8996a64f25 Mon Sep 17 00:00:00 2001 From: Frames White Date: Thu, 31 Aug 2023 12:28:46 +0800 Subject: [PATCH] tweaks --- src/CompositionalLoggers/common.jl | 1 + test/runtests.jl | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/CompositionalLoggers/common.jl b/src/CompositionalLoggers/common.jl index bb6c799..af69af5 100644 --- a/src/CompositionalLoggers/common.jl +++ b/src/CompositionalLoggers/common.jl @@ -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 diff --git a/test/runtests.jl b/test/runtests.jl index f57d785..1c9b2fc 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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