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
Logger fails silently when logging from multithreaded for loop / map, can't communicate with logger afterward.
Julia default logger works well in a similar situation.
MWE:
using TensorBoardLogger
using Logging
tblogger =TBLogger("MWE_tblogger_threads", min_level=Logging.Info)
with_logger(tblogger) dofor i in1:10@info"blah" i^2end@info"finished sequential" finished=trueend# works wellwith_logger(tblogger) do
Threads.@threadsfor i in1:10println(i^2) # no logging hereend@info"finished threads" finished=trueend# works well toowith_logger(tblogger) do
Threads.@threadsfor j in1:10@info"blah" j^2end@info"finished threads" finished=falseend# silently fails, and doesn't log anythingwith_logger(tblogger) do@info"can't communicate" something=1end# can't communicate with logger afterward
The text was updated successfully, but these errors were encountered:
Logger fails silently when logging from multithreaded for loop / map, can't communicate with logger afterward.
Julia default logger works well in a similar situation.
MWE:
The text was updated successfully, but these errors were encountered: