From 50e127ec23ca576ad0a96106ecb2ab7a76e1c3c6 Mon Sep 17 00:00:00 2001 From: Lars Mikkelsen Date: Tue, 27 Oct 2020 20:18:44 -0400 Subject: [PATCH] Fix log-level option --- icloudpd/logger.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/icloudpd/logger.py b/icloudpd/logger.py index 2b812a487..927a0cbae 100644 --- a/icloudpd/logger.py +++ b/icloudpd/logger.py @@ -2,7 +2,7 @@ import sys import logging -from logging import DEBUG, INFO +from logging import INFO class IPDLogger(logging.Logger): @@ -32,11 +32,10 @@ def tqdm_write(self, message, loglevel=INFO): self.tqdm.write(message) -def setup_logger(loglevel=DEBUG): +def setup_logger(): """Set up logger and add stdout handler""" logging.setLoggerClass(IPDLogger) logger = logging.getLogger("icloudpd") - logger.setLevel(loglevel) has_stdout_handler = False for handler in logger.handlers: if handler.name == "stdoutLogger":