Skip to content

Conversation

kbakk
Copy link
Contributor

@kbakk kbakk commented Sep 21, 2022

Issue number: Fixes #1525

Summary

Changes

Allow both int or str for level to copy_config_to_registered_loggers

User experience

See linked issue for type error fixed.

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Acknowledgment

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

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@kbakk kbakk requested a review from a team as a code owner September 21, 2022 05:34
@kbakk kbakk requested review from leandrodamascena and removed request for a team September 21, 2022 05:34
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 21, 2022
@heitorlessa heitorlessa changed the title improv: type for level args in copy_config_to_registered_loggers fix(typing): level arg in copy_config_to_registered_loggers Sep 21, 2022
@heitorlessa
Copy link
Contributor

Thank you so much @kbakk for the swift turnaround 🥰

@github-actions github-actions bot added the bug Something isn't working label Sep 21, 2022
@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2022

Codecov Report

Base: 99.73% // Head: 99.73% // No change to project coverage 👍

Coverage data is based on head (f0d0aa7) compared to base (93a022c).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1534   +/-   ##
========================================
  Coverage    99.73%   99.73%           
========================================
  Files          127      127           
  Lines         5729     5729           
  Branches       651      651           
========================================
  Hits          5714     5714           
  Misses           8        8           
  Partials         7        7           
Impacted Files Coverage Δ
aws_lambda_powertools/logging/utils.py 100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@heitorlessa heitorlessa merged commit b6b130d into aws-powertools:develop Sep 21, 2022
@kbakk
Copy link
Contributor Author

kbakk commented Sep 22, 2022

And thanks for getting this merged @heitorlessa 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size/S Denotes a PR that changes 10-29 lines, ignoring generated files. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Static typing: aws_lambda_powertools.logging.utils.copy_config_to_registered_loggers argument log_level should accept int
3 participants