You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems as though each thread inherits the global logger that was in use at the launch of julia, instead of the logger that was in effect at the time the @threads loop was invoked. Should the default behavior of @threads be modified to the above workaround instead?
The text was updated successfully, but these errors were encountered:
Presumably once #22631 is merged everything related to threading will change. I hope at that stage I'll have time to "take concurrency seriously" as regards to logging :-)
Currently, when using
@threads
in code tested by@test_logs
, the log entries emitted by threads withthreadid() > 1
are not captured.It is possible to work around this by writing:
It seems as though each thread inherits the global logger that was in use at the launch of
julia
, instead of the logger that was in effect at the time the@threads
loop was invoked. Should the default behavior of@threads
be modified to the above workaround instead?The text was updated successfully, but these errors were encountered: