EV-52: charger-less stubs, CHANGELOG, EV-28/EV-51 log rows set the two new lines aside
Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
This commit is contained in:
@@ -57,8 +57,12 @@ class _Cap(logging.Handler):
|
||||
self.rec.append((r.levelno, r.getMessage()))
|
||||
|
||||
def loud(self, since=0):
|
||||
"""INFO and above from `since` on."""
|
||||
return [m for lv, m in self.rec[since:] if lv >= logging.INFO]
|
||||
"""INFO and above from `since` on, but for EV-52's two plain lines
|
||||
("Car: set ..." for a taken write, "Car mode is now ..."): they are
|
||||
asserted in test_ev52.py (T11, T13); this file's rows are about every
|
||||
OTHER line a phase change may log."""
|
||||
return [m for lv, m in self.rec[since:] if lv >= logging.INFO
|
||||
and not m.startswith(("Car: set", "Car mode is now"))]
|
||||
|
||||
|
||||
CAP = _Cap()
|
||||
|
||||
Reference in New Issue
Block a user