Commit fc22bc92 authored by Martin Braun's avatar Martin Braun Committed by michael-west

utils: Make uhd_images_downloader log to stderr

parent 07f18f96
......@@ -44,12 +44,12 @@ _LOG_LEVELS = {"TRACE": 1,
# 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))
"[{level}] {message}\n".format(level=level, message=message))
def parse_args():
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment