diff --git a/SAS/SpecificationServices/lib/translation_service.py b/SAS/SpecificationServices/lib/translation_service.py index d3edb9a9bb521f10c4cc33ca8af0e9f7f8c9ba74..ea35a0f7f0d4cbb031da6671f4e49706edfda495 100644 --- a/SAS/SpecificationServices/lib/translation_service.py +++ b/SAS/SpecificationServices/lib/translation_service.py @@ -107,7 +107,7 @@ class SpecificationTranslationHandler(MessageHandlerInterface): specification_xml = etree.tostring(lofarspec, pretty_print=True) logger.debug(specification_xml) except Exception as err: - logger.error("Exception while translating trigger -> " + str(err.message)) + logger.error("Exception while translating trigger -> " + str(err)) raise logger.debug("specification after translation from trigger -> " + specification_xml) @@ -141,7 +141,7 @@ class SpecificationTranslationHandler(MessageHandlerInterface): momspec_xml = lofar_translator.translate_lofarspec_to_momspec(spec_xml) except Exception as err: - logger.error("Exception while translating specification -> " + str(err.message)) + logger.error("Exception while translating specification -> " + str(err)) raise logger.debug("MoM spec after translation -> " + momspec_xml)