Use exception info
This commit is contained in:
parent
052e853b20
commit
65436ad5d6
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue