From e3bf5dc34cff952b5d709c2e0ae26949caa9d20f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 26 Oct 2018 16:41:35 -0700 Subject: utils: Make uhd_images_downloader log to stderr --- host/utils/uhd_images_downloader.py.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/utils/uhd_images_downloader.py.in') 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(): -- cgit v1.2.3