Fix for repeated log lines in test case logs. Signed-off-by: Prasanna Santhanam <t...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/204bdac7 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/204bdac7 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/204bdac7 Branch: refs/heads/vmware-storage-motion Commit: 204bdac77f2c48e304b8bd7ccf2c85a69f4885ef Parents: e9a6d47 Author: ashutoshkelkar <ashut...@clogeny.com> Authored: Thu May 23 11:23:34 2013 +0530 Committer: Prasanna Santhanam <t...@apache.org> Committed: Tue May 28 11:15:57 2013 +0530 ---------------------------------------------------------------------- tools/marvin/marvin/TestCaseExecuteEngine.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/204bdac7/tools/marvin/marvin/TestCaseExecuteEngine.py ---------------------------------------------------------------------- diff --git a/tools/marvin/marvin/TestCaseExecuteEngine.py b/tools/marvin/marvin/TestCaseExecuteEngine.py index 5743868..4b64aae 100644 --- a/tools/marvin/marvin/TestCaseExecuteEngine.py +++ b/tools/marvin/marvin/TestCaseExecuteEngine.py @@ -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)