1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 02:40:50 +01:00

module: nicer logger name

Use Module.name rather than Module.__name__ to name the logger for
slightly more readable log output.
This commit is contained in:
Sergei Trofimov 2017-10-03 16:50:23 +01:00
parent bfb4721715
commit 92fb54d57b

View File

@ -56,7 +56,7 @@ class Module(object):
def __init__(self, target):
self.target = target
self.logger = logging.getLogger(self.__class__.__name__)
self.logger = logging.getLogger(self.name)
class HardRestModule(Module): # pylint: disable=R0921