Skip to content

Fix unhandled exception in error logging by providing the same number of vars and args#130

Open
PaulJSchellenberg wants to merge 1 commit intoawslabs:masterfrom
PaulJSchellenberg:patch-1
Open

Fix unhandled exception in error logging by providing the same number of vars and args#130
PaulJSchellenberg wants to merge 1 commit intoawslabs:masterfrom
PaulJSchellenberg:patch-1

Conversation

@PaulJSchellenberg
Copy link

Issue #, if available: N/A

Description of changes:

This particular log line, if it can't detect the environment will throw an unhandled exception TypeError: not all arguments converted during string formatting

This is because I think it's just not using the logging library correctly. Example usage: https://docs.python.org/3/howto/logging-cookbook.html#customized-exception-formatting

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

@PaulJSchellenberg
Copy link
Author

Happy new year Gordon, I was wondering if you could reach out to some peers for a second review on this pr. Thanks!

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