From 620adbe1233748cb9ab4bbe73fce27704bff0bd6 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 2 May 2022 16:32:33 +0100 Subject: [PATCH] Set the debug status --- handler/util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handler/util.py b/handler/util.py index 76c43cb..c7fba26 100644 --- a/handler/util.py +++ b/handler/util.py @@ -8,6 +8,7 @@ from settings import settings log = logging.getLogger("util") +debug = False # Color definitions BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8) @@ -60,6 +61,8 @@ def get_logger(name): # Define the logger on the base class log = logging.getLogger(name) + if debug: + log.setLevel(logging.DEBUG) # Add the handler and stop it being silly and printing everything twice log.addHandler(ch)