From a2e8ccea2daeab8516dad3c7f0b787f027afc8a0 Mon Sep 17 00:00:00 2001 From: Ace Date: Mon, 30 Nov 2020 08:59:21 +0100 Subject: [PATCH] fix logger is not defined --- inkycal/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inkycal/main.py b/inkycal/main.py index 6a9212b..5d90e9a 100644 --- a/inkycal/main.py +++ b/inkycal/main.py @@ -56,6 +56,8 @@ logging.basicConfig( ] ) +filename = os.path.basename(__file__).split('.py')[0] +logger = logging.getLogger(filename) # TODO: fix issue with non-render mode requiring SPI # TODO: autostart -> supervisor?