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-codetpt_closed_and_finally_footguns
parent
3d83b61f3f
commit
4e24cb1bff
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue