Commit f95f56f0 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Only create the result logger once

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@46023 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7a899d72
......@@ -102,7 +102,8 @@ class BenchmarkResult(object):
def getLogger(self):
if not self._logger:
logging.basicConfig(stream=self.log_file, level=self._log_level)
return logging.getLogger('erp5.utils.benchmark')
self._logger = logging.getLogger('erp5.utils.benchmark')
return self._logger
return self._logger
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment