Skip to content

Conversation

@iamgerg
Copy link
Contributor

@iamgerg iamgerg commented Nov 12, 2025

Summary

Changes

Please provide a summary of what's being changed

This PR fixes the bug where persistentKeys passed into a parent logger would be overwritten instead of merged by any value for persistentKeys being passed using the logger.createChild method. See the issue linked below for more details.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #4719


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.

@boring-cyborg
Copy link

boring-cyborg bot commented Nov 12, 2025

Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need.
In the meantime, check out the #typescript channel on our Powertools for AWS Lambda Discord: Invite link

@boring-cyborg boring-cyborg bot added logger This item relates to the Logger Utility tests PRs that add or change tests labels Nov 12, 2025
@pull-request-size pull-request-size bot added the size/L PRs between 100-499 LOC label Nov 12, 2025
@svozza
Copy link
Contributor

svozza commented Nov 12, 2025

Thank you for the quick turnaround! I only have two minor comments but other than that this looks great.

@iamgerg iamgerg force-pushed the iamgerg/fix-persistentKeys-for-children branch from abca587 to fec3943 Compare November 12, 2025 15:33
@pull-request-size pull-request-size bot added size/M PR between 30-99 LOC and removed size/L PRs between 100-499 LOC labels Nov 12, 2025
@pull-request-size pull-request-size bot added size/L PRs between 100-499 LOC and removed size/M PR between 30-99 LOC labels Nov 12, 2025
@sonarqubecloud
Copy link

@svozza
Copy link
Contributor

svozza commented Nov 12, 2025

Really thorough job here @iamgerg, thank you! Merging now.

@svozza svozza merged commit eafbe13 into aws-powertools:main Nov 12, 2025
34 checks passed
@boring-cyborg
Copy link

boring-cyborg bot commented Nov 12, 2025

Awesome work, congrats on your first merged pull request and thank you for helping improve everyone's experience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logger This item relates to the Logger Utility size/L PRs between 100-499 LOC tests PRs that add or change tests

Projects

Status: Working on it

Development

Successfully merging this pull request may close these issues.

Bug: persistentKeys are not persisted across children

2 participants