dcramer/raven — Issue #71: UnicodeEncodeError on print >> sys.stderr when redirecting to file
Author: gdehaan
Created: 2012-02-25 02:00:37+00:00
State: open

Hi,

I am getting UnicodeEncodeError's in raven.handlers.logging.py (lines 54, 61-63) on print to stderr, but only when redirecting stdout and stderr. It seems to work when printing to a macosx terminal, but not to a linux file.
It happens only in exception fallback cases, but I've had a fair few of those because issue #68 (md5.checksum with unicode).
Fixed by print >> sys.stderr, to_string(stuff).

Cheers,
Gijsbert

PS Many many thanks for sentry/raven, it's awesome.