I've been working on a bug in django where if you configure a
logging.handlers.SocketHandler in the django logging config, it gets a
TypeError because it tries to log a HttpRequest object, which can't be pickled.
I'm slowly coming to the conclusion that this isn't a django bug, and the
right fix is to make SocketHandler (and DatagramHandler) be able to deal with
this internally.
QueueHandler already does this, or at least the documentation says it does:
prepare(record) ... removes unpickleable items from the record in-place.
It seems like SocketHandler should do the same thing. Thoughts?
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/XGHGO4WL35S5HMMQ4NZGXD5FOYTCA3EY/
Code of Conduct: http://python.org/psf/codeofconduct/