simplify logging of not raised observer exceptions
@@ -334,11 +334,8 @@ class ConnectionObserver(object):
@staticmethod
def _log_unraised_exceptions(observer):
- observer._log(logging.DEBUG, "list length: {}".format(len(ConnectionObserver._not_raised_exceptions)))
- observer._log(logging.DEBUG, "list: {}".format(ConnectionObserver._not_raised_exceptions))
-
for i, item in enumerate(ConnectionObserver._not_raised_exceptions):
- observer._log(logging.DEBUG, "{}: {}".format(i, item))
+ observer._log(logging.DEBUG, "{:4d} NOT RAISED: {!r}".format(i+1, item))
def get_long_desc(self):
return "Observer '{}.{}'".format(self.__class__.__module__, self)
