Fix unicode log errors
This commit is contained in:
@@ -2316,8 +2316,8 @@ class WebInterface(object):
|
||||
# Add traceback message to previous msg.
|
||||
tl = (len(filt) - 1)
|
||||
n = len(l) - len(l.lstrip(' '))
|
||||
l = ' ' * (2 * n) + l[n:]
|
||||
filt[tl][2] += '<br>' + l
|
||||
ll = ' ' * (2 * n) + unicode(l[n:], 'utf-8')
|
||||
filt[tl][2] += '<br>' + ll
|
||||
continue
|
||||
|
||||
log_levels = ['DEBUG', 'INFO', 'WARNING', 'ERROR']
|
||||
|
Reference in New Issue
Block a user