Commit 7423224
debug: add temporary diagnostics for the live filter-not-firing report
A SHA-pinned override (ruling out any git/uv caching explanation) still
shows the unfiltered ERROR traceback in the live embedded server, and
StatelessSessionLogFilter (unrelated, pre-existing-pattern logic) isn't
suppressing "Terminating session: None" there either -- so something is
preventing install_sdk_log_filters() from taking effect in that specific
deployment, for a reason not yet identified from reading the code or
reproducing locally.
Two temporary WARNING-level log lines (visible without changing log level):
- install_sdk_log_filters() logs each target logger's filter count right
after installing, so we don't have to wait for a real disconnect race to
see whether the filters actually attached.
- SessionDisconnectLogFilter.filter() logs the exact type/module/repr of
whatever it sees in exc_info, and how it classified it, whenever it's
invoked on a matching record -- proving whether the filter runs at all,
and if so, exactly what it's failing to recognize.
Marked TEMPORARY; remove once the live mismatch is diagnosed.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 37ab2af commit 7423224
1 file changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
139 | 156 | | |
140 | 157 | | |
141 | 158 | | |
| |||
189 | 206 | | |
190 | 207 | | |
191 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
0 commit comments