generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request