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
Docs: child Logger without a parent uses the root log level since #8842 #8935
Since #8842, a child Logger without a level stays NOTSET. With no parent Logger in the process, it inherits the root logger's level (WARNING), so logger.info() is dropped. That matches 3.5.0, but on 3.6.0 to 3.41.0 it logged INFO. This test passes on 3.41.0 and fails on develop:
The docs don't cover this case: not the Child Loggers section (docs/core/logger.md line 969), and not the caplog tip under Testing your code (line 1153).
Got a suggestion in mind?
docs/core/logger.md line 969, add: "If no parent Logger with the same service exists, the child uses the root logger's level (WARNING by default)."
Line 1153, add to the caplog tip: "If the module under test only defines a child Logger, call caplog.set_level(logging.INFO) or create the parent Logger in conftest.py."
A line in the 3.42.0 release notes, since users on 3.6.0 or later have only seen INFO.
I can open a PR for the two docs lines. An AI assistant helped me write the test scripts; I ran them on 3.41.0 and develop and checked the output myself.
Acknowledgment
I understand the final update might be different from my proposed suggestion, or refused.
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out our GitHub Discussions: Join the conversation
Activity
boring-cyborg commentedon Dec 1, 2026
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
powertools-for-aws-oss-automation commentedon Dec 1, 2026
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out our GitHub Discussions: Join the conversation
rdxrahul12 commentedon Dec 2, 2026
Claiming this issue. Will update the child Logger docs to clarify the no-parent case.