Fix a small bug in log helper
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Fri, 9 Aug 2019 13:19:15 +0000 (15:19 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 10 Nov 2021 09:28:29 +0000 (10:28 +0100)
src/log_helpers.py

index e416bea..e85db0b 100644 (file)
@@ -235,7 +235,7 @@ class I2nLogger:
 
         # create new handlers and formatter
         if streams is None:
-            stream = []
+            streams = []
         elif not isinstance(streams, (list, tuple)):
             streams = (streams, )
         for stream in streams: