[FIX] convert message to string before stripping

bzr revid: christophe@tinyerp.com-20081211085825-24fmjnkjn0db0y8q
This commit is contained in:
Christophe Simonis 2008-12-11 09:58:25 +01:00
parent 1af922e696
commit 7b19f3ef8a
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ class Logger(object):
log = logging.getLogger(name)
level_method = getattr(log, level)
result = msg.strip().split('\n')
result = str(msg).strip().split('\n')
if len(result)>1:
for idx, s in enumerate(result):
level_method('[%02d]: %s' % (idx+1, s,))