cw-celerytask-helpers #17049434 Traceback in redis logger with non ascii exceptions [validation pending]

Sample traceback:

redislogger 12131 unhandled exception:
File "/home/florent/.virtualenvs/nemo/local/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/florent/cw/cubes/celery/cubicweb_celery/__init__.py", line 79, in __call__
return super(CWTask, self).__call__(*args, **kwargs)
File "/home/florent/.virtualenvs/nemo/local/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__
return self.run(*args, **kwargs)
File "/home/florent/.virtualenvs/nemo/share/cubicweb/cubes/nemo/sobjects/__init__.py", line 49, in csv_import
logger.exception(formatted_exc.encode('utf-8'))
File "/usr/lib/python2.7/logging/__init__.py", line 1193, in exception
self.error(msg, *args, **kwargs)
File "/usr/lib/python2.7/logging/__init__.py", line 1186, in error
self._log(ERROR, msg, args, **kwargs)
File "/usr/lib/python2.7/logging/__init__.py", line 1279, in _log
self.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1289, in handle
self.callHandlers(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1329, in callHandlers
hdlr.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 757, in handle
self.emit(record)
File "/home/florent/cw/cw-celerytask-helpers/cw_celerytask_helpers/redislogger.py", line 153, in emit
self.redis_client.publish(self.channel, self.format(record))
File "/usr/lib/python2.7/logging/__init__.py", line 732, in format
return fmt.format(record)
File "/home/florent/cw/cw-celerytask-helpers/cw_celerytask_helpers/redislogger.py", line 112, in format
message = super(RedisFormatter, self).format(record)
File "/home/florent/.virtualenvs/nemo/local/lib/python2.7/site-packages/celery/app/log.py", line 51, in format
return ColorFormatter.format(self, record)
File "/home/florent/.virtualenvs/nemo/local/lib/python2.7/site-packages/celery/utils/log.py", line 142, in format
msg = logging.Formatter.format(self, record)
File "/usr/lib/python2.7/logging/__init__.py", line 493, in format
'replace')
File "/home/florent/.virtualenvs/nemo/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
prioritynormal
typebug
done in0.2.1
load left0.000
closed by#11138722c0a8 [redislogger] make RedisFormatter inherit directly from logging.Formatter
patch[redislogger] make RedisFormatter inherit directly from logging.Formatter [applied]