diff --git a/devices/devices/observation_control.py b/devices/devices/observation_control.py index 51574e906febd8af0359ed18d9d583e019d05740..6aa992c98ce1ebf117111946d41b16eea2dd6767 100644 --- a/devices/devices/observation_control.py +++ b/devices/devices/observation_control.py @@ -344,7 +344,7 @@ class ObservationControl(Device): except DevFailed as ex: 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 cannot be controlled and/or forcefully be stopped.".format(obs_id, Observation.__name__, device_name) - logger.error("{}, {}".format(error_string, ex)) + logger.exception(error_string) Except.re_throw_exception(ex, "DevFailed", error_string, __name__) @command(dtype_in = numpy.int64)