How to use a logger in an asyncio background task #9654
-
Hello, I would like to know how to use a logger (from the logging module) in this example: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello, if you're setting up log related things yourself you'll indeed want to disable it using the params passed to |
Beta Was this translation helpful? Give feedback.
-
By following this guide, I realized that I could disable the log configuration. |
Beta Was this translation helpful? Give feedback.
By following this guide, I realized that I could disable the log configuration.
By using the run function like this :
client.run(token, log_handler=None)
, the logs no longer seem to be duplicated. My problem is now solved, but I appreciate your efforts to provide me with a solution