File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -362,7 +362,8 @@ using LoggingExtras
362
362
using HTTP
363
363
364
364
function not_HTTP_message_filter (log)
365
- log. _module != HTTP
365
+ # HTTP.jl utilizes internal modules so call parentmodule(...)
366
+ log. module != = HTTP && parentmodule (log. _module) != = HTTP
366
367
end
367
368
368
369
global_logger (EarlyFilteredLogger (not_HTTP_message_filter, global_logger ()))
@@ -375,7 +376,8 @@ using LoggingExtras
375
376
using HTTP
376
377
377
378
transformer_logger (global_logger ()) do log
378
- if log. _module == HTTP && log. level= Logging. Debug
379
+ # HTTP.jl utilizes internal modules so call parentmodule(...)
380
+ if (log. _module === HTTP || parentmodule (log. _module) === HTTP) && log. level === Logging. Debug
379
381
# Merge can be used to construct a new NamedTuple
380
382
# which effectively is the overwriting of fields of a NamedTuple
381
383
return merge (log, (; level= Logging. Info))
You can’t perform that action at this time.
0 commit comments