Just changing the format string to %r would be an easy fix and the
logs would still be legible. Sorry for the noise.
> Looks like From/Sender may be non-ASCII bytestrings, and logging is trying to encode them to UTF-8?
It looks to me a bit more like it is trying to write unicode objects
to an ascii log stream, and it would be better off actually writing
them as utf-8. That might be worth fixing separately.
It seems like it's some kind of other bug that we get a truncated traceback.
Just changing the format string to %r would be an easy fix and the
logs would still be legible. Sorry for the noise.
> Looks like From/Sender may be non-ASCII bytestrings, and logging is trying to encode them to UTF-8?
It looks to me a bit more like it is trying to write unicode objects
to an ascii log stream, and it would be better off actually writing
them as utf-8. That might be worth fixing separately.
It seems like it's some kind of other bug that we get a truncated traceback.