Adjust sampler's "IPC-dropped" log msg styling

Refmt the "connection-dropped" error-log in `Sampler`'s broadcast loop
to show error type first, then the IPC context details; mks it all
easier to grok/less-noisy on console imo.

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
tpt_closed_and_finally_footguns
Gud Boi 2026-02-20 14:52:36 -05:00
parent 3d83b61f3f
commit 4e24cb1bff
1 changed files with 4 additions and 3 deletions

View File

@ -292,9 +292,10 @@ class Sampler:
except self.bcast_errors as err: except self.bcast_errors as err:
log.error( log.error(
f'Connection dropped for IPC ctx\n' f'Connection dropped for IPC ctx due to,\n'
f'{stream._ctx}\n\n' f'{type(err)!r}\n'
f'Due to {type(err)}' f'\n'
f'{stream._ctx}'
) )
borked.add(stream) borked.add(stream)
else: else: