Bugfix in error handling - func_name does not exist

This commit is contained in:
Shay Nehmad 2020-01-05 15:47:37 +02:00
parent 723b5b47a5
commit 974e2205d1
1 changed files with 1 additions and 1 deletions

View File

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