From 4e24cb1bff296987ce35b0130fac58564cf71dac Mon Sep 17 00:00:00 2001 From: goodboy Date: Fri, 20 Feb 2026 14:52:36 -0500 Subject: [PATCH] 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 --- piker/data/_sampling.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/piker/data/_sampling.py b/piker/data/_sampling.py index ca4c59a9..802ea391 100644 --- a/piker/data/_sampling.py +++ b/piker/data/_sampling.py @@ -292,9 +292,10 @@ class Sampler: except self.bcast_errors as err: log.error( - f'Connection dropped for IPC ctx\n' - f'{stream._ctx}\n\n' - f'Due to {type(err)}' + f'Connection dropped for IPC ctx due to,\n' + f'{type(err)!r}\n' + f'\n' + f'{stream._ctx}' ) borked.add(stream) else: