Files
hermes-agent/tests
teknium1 f876ba60ff fix(logging): unavailable-log notice is re-armed by a successful write, not by open()
The "named once" guarantee only held when open() itself failed. In the reported
case open() succeeds and write/seek/flush raise EIO, so every record went
handleError -> stream=None -> next emit reopens -> _open() reset
_unavailable_reported -> the path line was printed once per record (25 for 25).
Reset the flag in emit() only after a record actually reached the stream; that
is the moment the destination has recovered.

Adds the open-succeeds/I-O-fails case to the test file: red on the previous
head, green here.

Review finding: EIO on write after a successful reopen printed the path per record.
2026-09-15 04:11:11 -07:00
..
…