|
@@ -478,8 +478,8 @@ class pure_json_protocol(object):
|
478
|
478
|
try:
|
479
|
479
|
self.logger.debug("%s Executing callback %s to process received data", self.__log_prefix__(), callback.__name__)
|
480
|
480
|
status, data = callback(msg, *args, **kwargs)
|
481
|
|
- except Exception:
|
482
|
|
- logger.error('{lp} Exception raised. Check callback {callback_name} and it\'s return values for service_id {service_id} and data_id {data_id}'.format(lp=self.__log_prefix__(), callback_name=callback.__name__, service_id=repr(msg.get_service_id()), data_id=repr(msg.get_data_id())))
|
|
481
|
+ except Exception as e:
|
|
482
|
+ logger.error('{lp} Exception raised. Check callback {callback_name}: "{message}" and it\'s return values for service_id {service_id} and data_id {data_id}'.format(lp=self.__log_prefix__(), callback_name=callback.__name__, message=str(e), service_id=repr(msg.get_service_id()), data_id=repr(msg.get_data_id())))
|
483
|
483
|
status = STATUS_CALLBACK_ERROR
|
484
|
484
|
data = None
|
485
|
485
|
else:
|