#22377: SQL Logging throws an exception when fields have utf-8 characters -------------------------------------+------------------------------------- Reporter: rolanvc@… | Owner: nobody Type: Bug | Status: closed Component: Database layer | Version: 1.9 (models, ORM) | Severity: Normal | Resolution: needsinfo Keywords: sql logging for | Triage Stage: utf-8 | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by marcinn): Also there is another issue related to this logger - when raw query has incorrect syntax, Django still tries to log the query (in the `finally` block). Then original exception (a sql error) is hidden, because of raising encoding/decoding error of the log message. Probably original error message lands somewhere in errors wrapper. I've spent hours on debugging unicode/deocde error instead of fixing query syntax. But when syntax was fixed, the error with logging still exists. -- Ticket URL: <https://code.djangoproject.com/ticket/22377#comment:17> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/075.c473a7fe181c2a3b16b16a9cb0380091%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.