getsentry/raven-python — pull request #196 by Sharpek (2012-10-20 09:35:08+00:00)
Title: Fix UnicodeEncodeError

Hi,

I fix some issue:

```python
In [1]: import logging;logging.exception(Exception(u'ąźć'))
None
Top level Sentry exception caught - failed creating log record
ąźć
Traceback (most recent call last):
File "/home/sharpek/PROJEKTY/WMASG/airsoft-player.pl/env/lib/python2.7/site-packages/raven/handlers/logging.py", line 52, in emit
self.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
return fmt.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 467, in format
s = self._fmt % record.__dict__
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)
```

Default logging formatter not support unicode.