test(log): isolate JSON format test with child logger #149
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/kronai!149
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/0108-fragile-log-test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Use a non-propagating child logger with a dedicated
StringIOhandler instead of clearing root handler state.Why
The previous approach of manually clearing root handlers was fragile — state could leak between tests.
Testing
Closes #108
Automated Review — PR #149
Result: APPROVED
Clean fix — replaces fragile root handler manipulation with a non-propagating child logger and dedicated
StringIOhandler. Test is now fully isolated from other log test state. Closes #108.No suggestions.
ddbcebd5cfef32529a5a