From 6e4d8be769e847a69388927cb51c80cf5830e9ff Mon Sep 17 00:00:00 2001
From: Thijs Snijder <snijder@astron.nl>
Date: Wed, 3 Nov 2021 12:17:47 +0000
Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s)

---
 devices/devices/observation_control.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devices/devices/observation_control.py b/devices/devices/observation_control.py
index d48258b3e..51574e906 100644
--- a/devices/devices/observation_control.py
+++ b/devices/devices/observation_control.py
@@ -310,7 +310,7 @@ class ObservationControl(Device):
             # Remove the device again.
             self.delete_dynamic_device(class_name, device_name)
             error_string = "Cannot access the Observation device instance for observation ID={} with device class name={} and device instance name={}.  This means that the observation likely did not start but certainly cannot be controlled and/or forcefully be stopped.".format(obs_id, class_name, device_name)
-            logger.error("{}, {}".format(error_string, ex))
+            logger.exception(error_string)
             Except.re_throw_exception(ex, "DevFailed", error_string, __name__)
 
         try:
-- 
GitLab