Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduced the volume of logging from the botocore library #19376

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions amazon_msk/datadog_checks/amazon_msk/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ class AmazonMskCheckV2(OpenMetricsBaseCheckV2, ConfigMixin):
def __init__(self, name, init_config, instances):
super().__init__(name, init_config, instances)

# This prevents botocore INFO logs from being printed in the Agent log
# https://github.com/boto/botocore/blob/develop/botocore/credentials.py#L1075
import logging

logging.getLogger('botocore').setLevel(logging.CRITICAL)

self._region_name = None
self._exporter_data = None
self._endpoint_prefix = None
Expand Down
Loading