projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f148754
)
[FIX] logger: convert the message in unicode before concatenate it with server enviro...
author
Christophe Simonis
<christophe@tinyerp.com>
Fri, 14 Aug 2009 14:09:48 +0000
(16:09 +0200)
committer
Christophe Simonis
<christophe@tinyerp.com>
Fri, 14 Aug 2009 14:09:48 +0000
(16:09 +0200)
lp bug: https://launchpad.net/bugs/413594 fixed
bzr revid: christophe@tinyerp.com-
20090814140948
-c67bfvv3w1lqi41k
bin/netsvc.py
patch
|
blob
|
history
diff --git
a/bin/netsvc.py
b/bin/netsvc.py
index
00ad231
..
ea6513a
100644
(file)
--- a/
bin/netsvc.py
+++ b/
bin/netsvc.py
@@
-170,10
+170,12
@@
class Logger(object):
if isinstance(msg, Exception):
msg = tools.exception_to_unicode(msg)
+ msg = tools.ustr(msg).strip()
+
if level in (LOG_ERROR,LOG_CRITICAL):
msg = common().get_server_environment() + msg
- result = tools.ustr(msg).strip().split('\n')
+ result = msg.split('\n')
if len(result)>1:
for idx, s in enumerate(result):
level_method('[%02d]: %s' % (idx+1, s,))