Closed d4hines closed 1 year ago
Possibly Logs could use Domain.before_first_spawn
to set this up itself (since it will affect all programs using Logs and domains, not just Eio).
I'm thinking of removing the Logs dependency from Eio (it's fine, but we're not using it much and fewer dependencies is better).
Just bumped into this :/ -- was it fixed in https://github.com/ocaml-multicore/eio/pull/403 ?
No, but since Eio no longer produces much log output, it's less likely people will blame it on us. I think this should be fixed in Logs.
Hi! When enabling
Debug
level logging in an application that uses parallelism and Eio, the program immediately crashes with this (somewhat garbled) output:Calling
Logs_threaded.enable ()
prevents this problem.Perhaps it's expected that users will call
Logs_threaded.enable ()
if they need it. Would callingLogs_threaded.enable
when you use the Eio domain manager be a good default?