You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
copy_config_to_registered_loggers does not exclude source_logger by default #999
When calling copy_config_to_registered_loggers(source_logger) without explicit exclude, the source_logger is not correctly excluded.
Expected Behavior
The source_logger is excluded
Current Behavior
The source_logger name is split in letters that get all excluded
Solution
the set constructor in aws_lambda_powertools/logging/utils.py creates a set containing all the letters of the log name exclude = set(source_logger.name)
this can be fixed with a set literal: exclude = { source_logger.name }
Activity
heitorlessa commentedon Feb 4, 2022
Thanks a lot for spotting this pesky bug @houbie!
Would you be able to create a quick PR fix for that? We can fast track this for the upcoming release
Cc @mploski
mploski commentedon Feb 4, 2022
@houbie Thanks for spotting this one! I guess it would be great to write unit-test against it also to ensure we won't have regression in the future.
heitorlessa commentedon Feb 4, 2022
Just merged and should be out early next week the latest with many other papercuts addressed - thank you so much @houbie !
Even more so being your first contribution :) 🎉
github-actions commentedon Feb 9, 2022
This is now released under 1.25.0 version!