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
fix(tests): Use record.message instead of record.msg in log assertions
Root cause: When we converted f-strings to %s format strings in logger.warning(),
the log record behavior changed:
- f-strings: record.msg contains the fully formatted string
- %s format: record.msg contains the template with %s placeholders
record.message contains the formatted result
The test was checking record.msg which now contains the unformatted template
like 'Cannot set environment for new %s.' instead of the formatted message
like 'Cannot set environment for new windows.'
Fix: Changed assertions to use record.message (the proper way to access
formatted log messages) instead of record.msg.
0 commit comments