-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
enhancementNew feature or requestNew feature or request
Description
If you are using this within a ThreadPoolExecutor
you may get the following error:
RuntimeError: There is no current event loop in thread 'ThreadPoolExecutor-0_0'.
A workaround for this is to use asyncio.run
instead. However, this has some overhead and it would be better if we provided a synchronous mechanism. @metric_scope
can check whether or not an event loop exists, and if not, it can fall back to using a synchronous logger implementation.
This will likely be superseded by #21
7e11, DollarAkshay, condad, SamStephens and rohitkotha10
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request