Commit 78d5bb0
committed
fix: CLI stderr handler keyed on ownership, not presence
Greptile P2 on PR #252: the any-handler early return meant a foreign handler attached to the semble logger by an embedding application would suppress the CLI stderr handler, redirecting or discarding oversized-file warnings. Idempotence now keys on the CLI-owned handler type (_CliLogHandler), so repeated setup still adds exactly one handler while a preconfigured foreign logger no longer blocks stderr visibility.
Lore-id: f488e6e1
Constraint: CLI logging setup must be idempotent across repeated in-process invocations
Tested: 328 tests pass; ruff, ruff format, mypy clean
Tested: in-process check: with a foreign NullHandler attached, CLI handler installed exactly once across two setup calls
Related: c9380176
Confidence: high
Scope-risk: narrow
Reversibility: clean1 parent 85d9140 commit 78d5bb0
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
211 | 215 | | |
212 | 216 | | |
213 | 217 | | |
214 | | - | |
| 218 | + | |
215 | 219 | | |
216 | | - | |
| 220 | + | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
| |||
0 commit comments