From f95f56f006f63be99cc482c463975d518aaca319 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Wed, 31 Aug 2011 11:44:54 +0000 Subject: [PATCH] Only create the result logger once git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@46023 20353a03-c40f-0410-a6d1-a30d3c3de9de --- erp5/util/benchmark/result.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erp5/util/benchmark/result.py b/erp5/util/benchmark/result.py index b5504d8da5..a5968d01d3 100644 --- a/erp5/util/benchmark/result.py +++ b/erp5/util/benchmark/result.py @@ -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 -- 2.30.9