Docs: Clarify warning around using `clear_state=True` with Logger() when using Powertools as a Lambda layer vs using other Lambda layers
What were you searching in the docs?
I was reading about Logger()
Is this related to an existing documentation section?
https://docs.powertools.aws.dev/lambda/python/latest/core/logger/#clearing-all-state
How can we improve?
The documentation contains a warning Danger: This can have unintended side effects if you use Layers however I believe this relates to using other layers as opposed to using the Powertools layer itself.
Got a suggestion in mind?
Something like...
Danger: This can have unintended side effects if you use Layers other than Powertools.
Acknowledgment
- [X] I understand the final update might be different from my proposed suggestion, or refused.
Hi @ChrisHills463,
The docs are correct, it affects us – we should probably change the wording though here with what it actually affects.
Assigning to release it this Thursday
Hi @leandrodamascena, can you pick this up in the next iteration? Should be a quick one.
Assigned to @anafalcao
⚠️COMMENT VISIBILITY WARNING⚠️
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.