We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 689f985 commit 1e3ee49Copy full SHA for 1e3ee49
1 file changed
src/debug.jl
@@ -1,4 +1,8 @@
1
# debug functionality
2
3
-isdebug(group, mod=CUDA) =
4
- Base.CoreLogging.current_logger_for_env(Base.CoreLogging.Debug, group, mod) !== nothing
+function isdebug(group, mod=CUDA)
+ level = Base.CoreLogging.Debug
5
+ logger = Base.CoreLogging.current_logger_for_env(level, group, mod)
6
+ # TODO: Which id to choose here instead of 0?
7
+ logger !== nothing && Base.CoreLogging.shouldlog(logger, level, mod, group, 0)
8
+end
0 commit comments