Fix unicode log errors

This commit is contained in:
JonnyWong16 2018-04-07 10:35:28 -07:00
parent ad61e23d92
commit c4fc94ea34
2 changed files with 4 additions and 5 deletions

View file

@ -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 = '&nbsp;' * (2 * n) + unicode(l[n:], 'utf-8')
filt[tl][2] += '<br>' + ll
continue
log_levels = ['DEBUG', 'INFO', 'WARNING', 'ERROR']