From 970d1246cd5740d4c83953428275e86a790fd48a Mon Sep 17 00:00:00 2001 From: Vasileios Karakasis Date: Mon, 27 May 2019 17:36:45 +0200 Subject: [PATCH] Fix crash when using syslog with the -v option --- reframe/core/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reframe/core/logging.py b/reframe/core/logging.py index 171ad8714f..17073e9866 100644 --- a/reframe/core/logging.py +++ b/reframe/core/logging.py @@ -400,7 +400,7 @@ def setLevel(self, level): def std_stream_handlers(self): if self.logger: return [h for h in self.logger.handlers - if h.stream == sys.stdout or h.stream == sys.stderr] + if isinstance(h, logging.StreamHandler)] else: return []