diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-10-26 16:41:35 -0700 |
---|---|---|
committer | Brent Stapleton <bstapleton@g.hmc.edu> | 2018-11-13 12:12:09 -0800 |
commit | e3bf5dc34cff952b5d709c2e0ae26949caa9d20f (patch) | |
tree | 478940c6cf670bdf3a26b992c89fa924571d9be4 /host/utils/uhd_images_downloader.py.in | |
parent | 1ab86305c15fe0ab080282e83b07e24ebb0f0bb7 (diff) | |
download | uhd-e3bf5dc34cff952b5d709c2e0ae26949caa9d20f.tar.gz uhd-e3bf5dc34cff952b5d709c2e0ae26949caa9d20f.tar.bz2 uhd-e3bf5dc34cff952b5d709c2e0ae26949caa9d20f.zip |
utils: Make uhd_images_downloader log to stderr
Diffstat (limited to 'host/utils/uhd_images_downloader.py.in')
-rw-r--r-- | host/utils/uhd_images_downloader.py.in | 4 |
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(): |