Functions should have options to surpress info Logging messages #3129
arccarlinbr
started this conversation in
Ideas
Replies: 1 comment
|
Have you already tried this approach? One way to handle the issue is by disabling or adjusting the logging level for specific libraries. When your application runs with the DEBUG level enabled, third-party libraries such as boto3 may generate an excessive amount of log output, which often adds noise rather than value. To avoid this, you can configure different logging levels for individual libraries, keeping your own application logs verbose while reducing unnecessary messages from external dependencies. import logging
# Set global logging level for your application
logging.getLogger().setLevel(logging.DEBUG)
# Silence logs from boto3 and related libraries
logging.getLogger('boto3').setLevel(logging.WARNING)
logging.getLogger('botocore').setLevel(logging.WARNING)
logging.getLogger('urllib3').setLevel(logging.WARNING) # Used internally by boto3 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
functions such as read_sql_query should ideally be able to set levels of verbosity
All reactions