Commit 0293c6d
fix: read governance debug log tail in binary mode
feature_governance_cl.py was opening debug.log in text mode but
seeking with a binary offset. The fully safe fix is to read the
tail in binary mode, seek using a binary offset, then decode the
resulting bytes afterward for the string match.
This preserves the existing 100 KiB tail scan while avoiding
invalid mixed-mode seek behavior in Python text I/O.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 67683f3 commit 0293c6d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
0 commit comments