Skip to content

Commit 02cf19e

Browse files
author
Vasileios Karakasis
authored
Merge pull request #808 from vkarak/bugfix/syslog-handler-crash
[bugfix] Fix crash when using syslog logging handler with the `-v` option
2 parents d7d566d + 76246a0 commit 02cf19e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reframe/core/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def setLevel(self, level):
400400
def std_stream_handlers(self):
401401
if self.logger:
402402
return [h for h in self.logger.handlers
403-
if h.stream == sys.stdout or h.stream == sys.stderr]
403+
if isinstance(h, logging.StreamHandler)]
404404
else:
405405
return []
406406

0 commit comments

Comments
 (0)