From f447ddfd793fe0ec6031ecbeaa510be2aeb1a8da Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Fri, 20 Dec 2024 01:13:02 -0500 Subject: [PATCH] set log handler on root logger --- nomen/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nomen/main.py b/nomen/main.py index c166eb7..869ce1a 100644 --- a/nomen/main.py +++ b/nomen/main.py @@ -26,8 +26,7 @@ log.setLevel(logging.DEBUG) formatter = logging.Formatter("%(asctime)s:%(levelname)s:%(name)s: %(message)s") handler = logging.StreamHandler(sys.stdout) handler.setFormatter(formatter) -logger_disnake.addHandler(handler) -log.addHandler(handler) +logging.getLogger(None).addHandler(handler) if load_dotenv(find_dotenv(usecwd=True)): log.debug("Loaded .env")