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

Commit 2187d0f

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 3f9dd61 commit 2187d0f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tools/xmlGenerator/domainGenerator.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /usr/bin/python
22
#
3-
# Copyright (c) 2011-2014, Intel Corporation
3+
# Copyright (c) 2011-2015, Intel Corporation
44
# All rights reserved.
55
#
66
# Redistribution and use in source and binary forms, with or without modification,
@@ -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)