Opened 18 years ago

Closed 18 years ago

Last modified 18 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: no UI/UX: no

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@…> 18 years ago.
Log DB queries for failures

Download all attachments as: .zip

Change History (4)

by Christopher Lenz <cmlenz@…>, 18 years ago

Attachment: django_1475.diff added

Log DB queries for failures

comment:1 by Christopher Lenz <cmlenz@…>, 18 years ago

Component: Admin interfaceDatabase wrapper

comment:2 by Jacob, 18 years ago

Resolution: fixed
Status: newclosed

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

comment:3 by Christopher Lenz <cmlenz@…>, 18 years ago

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

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