Use exception info

This commit is contained in:
Daniel Goldberg 2019-11-27 13:54:48 +02:00
parent 052e853b20
commit 65436ad5d6
1 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,8 @@ def safe_process_telemetry(processing_function, telemetry_json):
try:
processing_function(telemetry_json)
except Exception as err:
logger.error("Error while in {} stage of processing telemetry.".format(processing_function.func_name),
logger.error(
"Error {} while in {} stage of processing telemetry.".format(str(err), processing_function.func_name),
exc_info=True)