-class Base:
- @classmethod
- def _print_test_params(cls, params):
- items = sorted([str(x) for x in params.items() if x[0].startswith('test-')])
- print('{}: {}'.format(cls.__name__, ', '.join(items)))
-
- def _print_log_level(self):
- cls_name = self.__class__.__name__
- log_level = self.logging_level
- print('{}: {}'.format(cls_name, log_level))
-
- def _print_info(self, params):
- what = params['print']
- if what == 'test-params':
- self._print_test_params(params)
- elif what == 'log-level':
- self._print_log_level()
+ if params['what'] == 'test-params':
+ items = sorted([str(x) for x in params.items() if x[0].startswith('test-')])
+ stream_name = '{}: {}'.format(comp_cls_name, ', '.join(items))
+ elif params['what'] == 'log-level':
+ log_level = self._component.logging_level
+ stream_name = '{}: {}'.format(comp_cls_name, log_level)