Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1475 closed enhancement (fixed)

[patch] Log DB queries for failed actions, too

Reported by: Christopher Lenz <cmlenz@…> Owned by: adrian
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@…> 10 years ago.
Log DB queries for failures

Download all attachments as: .zip

Change History (4)

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

Log DB queries for failures

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

  • Component changed from Admin interface to Database wrapper

comment:2 Changed 10 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:3 Changed 10 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