From f50d65d2d29a71b85f93c82850e2fbb8177a0772 Mon Sep 17 00:00:00 2001 From: Dennis Date: Sun, 27 Jun 2021 11:09:10 +0200 Subject: [PATCH] Fix path in logger object For addrmaps, the addrmaps appeared twice. It was better anyway to use a variable name that gets build in create_underscored_path(). This method was not yet present when the logger was first instantiated. --- srdl2sv/components/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srdl2sv/components/component.py b/srdl2sv/components/component.py index a0108ef..ffe6e7e 100644 --- a/srdl2sv/components/component.py +++ b/srdl2sv/components/component.py @@ -39,7 +39,7 @@ class Component(): self.config = config # Create logger object - self.create_logger("{}.{}".format(self.owning_addrmap, self.path), config) + self.create_logger("{}".format(self.full_path), config) self.logger.debug('Starting to process {} "{}"'.format( self.__class__.__name__, obj.inst_name))