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

Fix logging of tuple of headers causing error when log level is set to DEBUG #2947

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

chrsros
Copy link

@chrsros chrsros commented May 19, 2023

response['header'] is a tuple so each element of the tuple is treated as a different argument during string formatting. This leads to the following error whenever there is more than one entry in the response header:

TypeError: not all arguments converted during string formatting

This leads to very frustrating stack traces the fill the logs when using boto while the log level is set to debug.

The fix wraps it with another tuple that only contains one element to ensure proper formatting.

@chrsros chrsros changed the title Fix: Fix debug logging of tuple of headers Fix logging of tuple of headers causing error when log level is set to DEBUG May 25, 2023
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.

None yet

1 participant