summaryrefslogtreecommitdiff
path: root/odoo/modules/module.py
diff options
context:
space:
mode:
authorXavier-Do <xdo@odoo.com>2019-06-05 11:49:18 +0000
committerXavier-Do <xdo@odoo.com>2019-06-05 14:34:33 +0000
commit154703d21c9609c8d45f3a7997dab575c2bc6983 (patch)
treed88b4da747081335accfe93482fbe642c1f94902 /odoo/modules/module.py
parent6d34a19ba8caf287d2973a1b1fd1430b39d5612d (diff)
[IMP] core: log traceback in one group
Traceback coming from tests are currently logged line by line. This will implies that runbot will have one ir_logging entry per line which is not practical. More than that, the log prefix can make the traceback less readable because of line returns and difficult to copy paste. This commit simply remove this feature. After discussion with odo and chs, we will also remove the docstring from test shortDescription since most of the time this information is not clear and can be accessed in source code if needed. closes odoo/odoo#33911 Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Diffstat (limited to 'odoo/modules/module.py')
-rw-r--r--odoo/modules/module.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/odoo/modules/module.py b/odoo/modules/module.py
index 9160717bfb9..8036bff7dd9 100644
--- a/odoo/modules/module.py
+++ b/odoo/modules/module.py
@@ -475,13 +475,8 @@ class TestStream(object):
def write(self, s):
if self.r.match(s):
return
- first = True
level = logging.ERROR if s.startswith(('ERROR', 'FAIL', 'Traceback')) else logging.INFO
- for c in s.splitlines():
- if not first:
- c = '` ' + c
- first = False
- self.logger.log(level, c)
+ self.logger.log(level, s)
current_test = None