Browse Source

Release 2a04c5bb4a; Exception message added to log in case of a callback exception

master
Dirk Alders 4 years ago
parent
commit
92c40ce9ab
3 changed files with 45323 additions and 45323 deletions
  1. 2
    2
      __init__.py
  2. 45321
    45321
      _testresults_/unittest.json
  3. BIN
      _testresults_/unittest.pdf

+ 2
- 2
__init__.py View File

@@ -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:

+ 45321
- 45321
_testresults_/unittest.json
File diff suppressed because it is too large
View File


BIN
_testresults_/unittest.pdf View File


Loading…
Cancel
Save