From 34a182cbf5839f46175b589903526b490b5edb3a Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 6 Mar 2022 10:03:52 +0000 Subject: [PATCH] Simplify logger initialisation --- handler/util.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/handler/util.py b/handler/util.py index e544c8a..6e7a738 100644 --- a/handler/util.py +++ b/handler/util.py @@ -84,16 +84,10 @@ class Base(object): name = self.__class__.__name__ # Set up all the logging stuff - self._setup_logger(name) + self.log = get_logger(name) self.log.info("Class initialised") - def _setup_logger(self, name): - """ - Set up the logging handlers. - """ - self.log = get_logger(name) - def xmerge_attrs(init_map): """