Fix for repeated log lines in test case logs.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
ashutoshkelkar 2013-05-23 11:23:34 +05:30 committed by Prasanna Santhanam
parent e9a6d47316
commit 204bdac77f
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class TestCaseExecuteEngine(object):
self.injectTestCase(test)
else:
#logger bears the name of the test class
testcaselogger = logging.getLogger("testclient.testcase.%s"%test.__class__.__name__)
testcaselogger = logging.getLogger("%s" % (test))
fh = logging.FileHandler(self.logfile)
fh.setFormatter(self.logformat)
testcaselogger.addHandler(fh)