We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32fb479 + a7af53a commit 3ccac58Copy full SHA for 3ccac58
reframe/core/logging.py
@@ -591,6 +591,7 @@ def _extract_handlers(site_config, handlers_group):
591
hdlr.setFormatter(RFC3339Formatter(fmt=fmt,
592
datefmt=datefmt, perffmt=perffmt))
593
hdlr.setLevel(_check_level(level))
594
+ hdlr._rfm_type = handler_type
595
handlers.append(hdlr)
596
597
return handlers
@@ -692,8 +693,7 @@ def setLevel(self, level):
692
693
@property
694
def std_stream_handlers(self):
695
if self.logger:
- return [h for h in self.logger.handlers
696
- if isinstance(h, logging.StreamHandler)]
+ return [h for h in self.logger.handlers if h._rfm_type == 'stream']
697
else:
698
return []
699
0 commit comments