From: W. Trevor King Date: Sat, 21 Jul 2012 11:59:58 +0000 (-0400) Subject: Use DebuggingStream for any LOG.level <= DEBUG (not just ==). X-Git-Tag: v0.2~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84d9a567bca5e790ff5e089208a3de383978becd;p=igor.git Use DebuggingStream for any LOG.level <= DEBUG (not just ==). --- 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]