|
|
|
|
478
|
try:
|
478
|
try:
|
479
|
self.logger.debug("%s Executing callback %s to process received data", self.__log_prefix__(), callback.__name__)
|
479
|
self.logger.debug("%s Executing callback %s to process received data", self.__log_prefix__(), callback.__name__)
|
480
|
status, data = callback(msg, *args, **kwargs)
|
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
|
status = STATUS_CALLBACK_ERROR
|
483
|
status = STATUS_CALLBACK_ERROR
|
484
|
data = None
|
484
|
data = None
|
485
|
else:
|
485
|
else:
|