Simplify logger initialisation

This commit is contained in:
Mark Veidemanis 2022-03-06 10:03:52 +00:00
parent 5aa9ba9294
commit 34a182cbf5
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 7 deletions

View File

@ -84,16 +84,10 @@ class Base(object):
name = self.__class__.__name__ name = self.__class__.__name__
# Set up all the logging stuff # Set up all the logging stuff
self._setup_logger(name) self.log = get_logger(name)
self.log.info("Class initialised") 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): def xmerge_attrs(init_map):
""" """