Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 47afa02

Browse files
committed
Update domainGenerator python script to use the new log API
Change-Id: Ib31547b3f899f96b837ac125ea7b0feb8c946760 Signed-off-by: Jules Clero <julesx.clero@intel.com>
1 parent 35452cf commit 47afa02

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tools/xmlGenerator/domainGenerator.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@ def __init__(self):
113113
super(PfwLogger, self).__init__()
114114
self.__logger = logging.root.getChild("parameter-framework")
115115

116-
def log(self, is_warning, message):
117-
log_func = self.__logger.warning if is_warning else self.__logger.info
118-
log_func(message)
116+
def warning(self, message):
117+
self.__logger.warning(message)
118+
119+
def info(self, message):
120+
self.__logger.info(message)
119121

120122
# If this file is directly executed
121123
if __name__ == "__main__":

0 commit comments

Comments
 (0)