From 2190a6627d64bba201d9853c617cdbe3662cd375 Mon Sep 17 00:00:00 2001 From: appel_c Date: Tue, 27 Jan 2026 10:03:46 +0100 Subject: [PATCH] w --- csaxs_bec/devices/jungfraujoch/jungfrau_joch_client.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/csaxs_bec/devices/jungfraujoch/jungfrau_joch_client.py b/csaxs_bec/devices/jungfraujoch/jungfrau_joch_client.py index bddc4eb..84b0747 100644 --- a/csaxs_bec/devices/jungfraujoch/jungfrau_joch_client.py +++ b/csaxs_bec/devices/jungfraujoch/jungfrau_joch_client.py @@ -114,9 +114,12 @@ class JungfrauJochClient: raise TimeoutError(f"Timeout while setting detector settings for {self._parent_name}") except Exception: content = traceback.format_exc() - raise JungfrauJochClientError( + logger.error( f"Error while setting detector settings for {self._parent_name}: {content}" ) + raise JungfrauJochClientError( + f"Error while setting detector settings for parent device {self._parent_name}." + ) def start(self, settings: dict | DatasetSettings, request_timeout: float = 10) -> None: """Start the mesaurement. DatasetSettings must be provided, and JungfrauJoch must be in IDLE state. @@ -147,9 +150,12 @@ class JungfrauJochClient: ) except Exception: content = traceback.format_exc() - raise JungfrauJochClientError( + logger.error( f"Error in JungfrauJochClient for parent device {self._parent_name} during 'start' call: {content}" ) + raise JungfrauJochClientError( + f"Error in JungfrauJochClient for parent device {self._parent_name} during 'start' post." + ) def stop(self, request_timeout: float = 0.5) -> None: """Stop the acquisition, this only logs errors and is not raising."""