Use DebuggingStream for any LOG.level <= DEBUG (not just ==).
authorW. Trevor King <wking@tremily.us>
Sat, 21 Jul 2012 11:59:58 +0000 (07:59 -0400)
committerW. Trevor King <wking@tremily.us>
Sat, 21 Jul 2012 11:59:58 +0000 (07:59 -0400)
igor/struct.py

index ea8af34dfd2b1b492c6e29c216a9bbf9dace9f17..6097c20a4a633ddc2dbbb5423e7ff7beea5aa664 100644 (file)
@@ -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]