summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authormbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2009-05-01 23:07:14 +0000
committermbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2009-05-01 23:07:14 +0000
commitf3b8eaf22f1a4a45996507f3c377e7f1239cffb1 (patch)
tree3b10276ce991bd786470f86d86ff182b7281a9fb /client
parentead6a653b53388ad69190d2e74a07d138f505ff9 (diff)
Summary: Make the prefix format for the log files generated by tests
be coherent with the other logs Since the new logging approach was introduced, we have changed the formatting for the line prefixes. The prefixes generated by the file handler instantiated on the test class were not updated. Let's fix that. Signed-off-by: Lucas Meneghel Rodrigues <lookkas@gmail.com> git-svn-id: svn://test.kernel.org/autotest/trunk@3079 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'client')
-rw-r--r--client/common_lib/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/common_lib/test.py b/client/common_lib/test.py
index d2c2308a..91229650 100644
--- a/client/common_lib/test.py
+++ b/client/common_lib/test.py
@@ -296,7 +296,7 @@ class base_test:
'%s.log' % self.tagged_testname)
self.test_handler = logging.FileHandler(filename=result_filename,
mode='w')
- fmt_str = '[%(asctime)s - %(module)-15s - %(levelname)-8s] %(message)s'
+ fmt_str = '[%(asctime)s %(levelname)-5.5s %(module)s] %(message)s'
self.test_formatter = logging.Formatter(fmt_str)
self.test_handler.setFormatter(self.test_formatter)
self.logger = logging.getLogger()