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