aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
Diffstat (limited to 'host/utils')
-rw-r--r--host/utils/uhd_images_downloader.py.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/utils/uhd_images_downloader.py.in b/host/utils/uhd_images_downloader.py.in
index 465fd2400..59ff442ee 100644
--- a/host/utils/uhd_images_downloader.py.in
+++ b/host/utils/uhd_images_downloader.py.in
@@ -44,12 +44,12 @@ _LOG_LEVELS = {"TRACE": 1,
_LOG_LEVEL = _LOG_LEVELS["INFO"]
-# TODO: Move to a standard logger?
def log(level, message):
"""Logging function"""
message_log_level = _LOG_LEVELS.get(level, 0)
if message_log_level >= _LOG_LEVEL:
- print("[{level}] {message}".format(level=level, message=message))
+ sys.stderr.write(
+ "[{level}] {message}\n".format(level=level, message=message))
def parse_args():