Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1475 closed enhancement (fixed)

[patch] Log DB queries for failed actions, too

Reported by: Christopher Lenz <cmlenz@…> Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

DB queries are only logged for statements that succeed. It would be nice to be able to, for example, get the last SQL of a failed model operation, but such queries are not recorded. Patch forthcoming...

Attachments (1)

django_1475.diff (1.4 KB) - added by Christopher Lenz <cmlenz@…> 11 years ago.
Log DB queries for failures

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by Christopher Lenz <cmlenz@…>

Attachment: django_1475.diff added

Log DB queries for failures

comment:1 Changed 11 years ago by Christopher Lenz <cmlenz@…>

Component: Admin interfaceDatabase wrapper

comment:2 Changed 11 years ago by Jacob

Resolution: fixed
Status: newclosed

(In [2500]) magic-removal: fixed #1475 - debug mode now logs failsed queries, as well (thanks, cmlenz)

comment:3 Changed 11 years ago by Christopher Lenz <cmlenz@…>

(oops, I think that patch had tabs… sorry)

Note: See TracTickets for help on using tickets.
Back to Top