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
362362using HTTP
363363
364364function 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
366367end
367368
368369global_logger (EarlyFilteredLogger (not_HTTP_message_filter, global_logger ()))
@@ -375,7 +376,8 @@ using LoggingExtras
375376using HTTP
376377
377378transformer_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
379381 # Merge can be used to construct a new NamedTuple
380382 # which effectively is the overwriting of fields of a NamedTuple
381383 return merge (log, (; level= Logging. Info))
You can’t perform that action at this time.
0 commit comments