Simplify logger initialisation
This commit is contained in:
parent
5aa9ba9294
commit
34a182cbf5
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue