diff options
-rw-r--r-- | scripts/lib/scriptutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py index 42337830eb..4ccbe5c108 100644 --- a/scripts/lib/scriptutils.py +++ b/scripts/lib/scriptutils.py | |||
@@ -22,9 +22,9 @@ import glob | |||
22 | import argparse | 22 | import argparse |
23 | import subprocess | 23 | import subprocess |
24 | 24 | ||
25 | def logger_create(name): | 25 | def logger_create(name, stream=None): |
26 | logger = logging.getLogger(name) | 26 | logger = logging.getLogger(name) |
27 | loggerhandler = logging.StreamHandler() | 27 | loggerhandler = logging.StreamHandler(stream=stream) |
28 | loggerhandler.setFormatter(logging.Formatter("%(levelname)s: %(message)s")) | 28 | loggerhandler.setFormatter(logging.Formatter("%(levelname)s: %(message)s")) |
29 | logger.addHandler(loggerhandler) | 29 | logger.addHandler(loggerhandler) |
30 | logger.setLevel(logging.INFO) | 30 | logger.setLevel(logging.INFO) |