From 8eb0b84169ccb0a1865fa23e7a90b90a9f0f1bc0 Mon Sep 17 00:00:00 2001 From: Emma Nora Theuer Date: Sat, 28 Dec 2024 00:21:27 +0100 Subject: [PATCH] Declare logger as a global variable explicitly for clarity --- src/wallman_lib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallman_lib.py b/src/wallman_lib.py index f8034e9..8ee82b7 100644 --- a/src/wallman_lib.py +++ b/src/wallman_lib.py @@ -7,6 +7,7 @@ from datetime import datetime, time from apscheduler.triggers.cron import CronTrigger # Setup Logging. NOTE: Declaration as a global variable is necessary to ensure correct functionality across multiple modules. +global logger logger = logging.getLogger("wallman") class ConfigError(Exception):