Skip to content

Fix verbosity option to work with early credential errors#39

Merged
massi-ang merged 1 commit into
awslabs:mainfrom
tomenden:fix-verbosity-option-credential-errors
Jul 10, 2025
Merged

Fix verbosity option to work with early credential errors#39
massi-ang merged 1 commit into
awslabs:mainfrom
tomenden:fix-verbosity-option-credential-errors

Conversation

@tomenden

Copy link
Copy Markdown
Contributor
  • Add GIT_REMOTE_S3_VERBOSE environment variable support for early verbosity

  • Configure both root and module loggers in cmd_option for complete verbosity

  • Update README.md with new debugging options

  • Fixes issue where --verbose flag didn't work with credential errors

The problem was that logging.basicConfig() set the root logger level to ERROR at import time, and cmd_option only modified the module logger. Early errors like AWS credential issues were logged before the verbosity option could be processed, causing them to be suppressed.

Issue #, if available:

Description of changes:

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

- Add GIT_REMOTE_S3_VERBOSE environment variable support for early verbosity

- Configure both root and module loggers in cmd_option for complete verbosity

- Update README.md with new debugging options

- Fixes issue where --verbose flag didn't work with credential errors

The problem was that logging.basicConfig() set the root logger level to ERROR at import time, and cmd_option only modified the module logger. Early errors like AWS credential issues were logged before the verbosity option could be processed, causing them to be suppressed.
@massi-ang massi-ang merged commit 6997eac into awslabs:main Jul 10, 2025
1 check passed
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.

2 participants