From 84d9a567bca5e790ff5e089208a3de383978becd Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 21 Jul 2012 07:59:58 -0400 Subject: [PATCH] Use DebuggingStream for any LOG.level <= DEBUG (not just ==). --- igor/struct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/igor/struct.py b/igor/struct.py index ea8af34..6097c20 100644 --- a/igor/struct.py +++ b/igor/struct.py @@ -709,7 +709,7 @@ class DynamicStructure (Structure): if data is None: parents = [self] data = d = {} - if _LOG.level == _logging.DEBUG: + if _LOG.level <= _logging.DEBUG: stream = DebuggingStream(stream) else: parents = parents + [self] -- 2.26.2