Skip to content

Route awscrt logs through the logging module#10339

Open
azkrishpy wants to merge 1 commit into
aws:v2from
azkrishpy:crt-logging-integration
Open

Route awscrt logs through the logging module#10339
azkrishpy wants to merge 1 commit into
aws:v2from
azkrishpy:crt-logging-integration

Conversation

@azkrishpy
Copy link
Copy Markdown

@azkrishpy azkrishpy commented May 21, 2026

Issue #, if available:

Description of changes:

Route awscrt logs through Python's logging module so they're emitted alongside botocore, awscli, s3transfer, and urllib3 when --debug is set. This makes CRT-backed
features (e.g. CRT-based S3 transfers) easier to diagnose without configuring CRT logging separately.

  • awscli/logger.py: switch from awscrt.io.init_logging to awscrt.logging.init_logging; enable/disable_crt_logging now use Python log levels.
  • awscli/clidriver.py: add awscrt to the --debug logger list.
  • Existing logger tests updated to mock the new awscrt.logging.set_log_level target.

Generated with AI assistance and reviewed by @azkrishpy

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant