From e0a6c370310a18177beb6b6a4ede735b0081a492 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 30 Oct 2020 10:01:40 +0000 Subject: [PATCH] Make the log level calculation "safer" --- alertify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alertify.py b/alertify.py index 95e9669..89ad354 100644 --- a/alertify.py +++ b/alertify.py @@ -65,7 +65,7 @@ if __name__ == '__main__': # Config :: Verbose: 0 = WARNING, 1 = INFO, 2 = DEBUG # Logging :: Loglevel: 30 = WARNING, 20 = INFO, 10 = DEBUG logger = logging.getLogger() - logger.setLevel(30 - (forwarder.config.verbose * 10)) + logger.setLevel(max(logging.WARNING - (forwarder.config.verbose * 10), 10)) # ----------------------------- if args.healthcheck: