Opened 6 years ago
Closed 6 years ago
#30148 closed New feature (fixed)
Add postgresql logging to copy_expert() copy_to() cursor functions while in DEBUG
Reported by: | Javier Buzzi | Owned by: | Javier Buzzi |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I ran into an issue where I was running postgres commands copy_expert()
/ copy_to()
and my queries weren't showing up on my connection.queries
while DEBUG=True
. I figured no one has needed this before, but I need it for my tests to pass.
Change History (8)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Component: | Uncategorized → Database layer (models, ORM) |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 6 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:4 by , 6 years ago
Patch needs improvement: | set |
---|---|
Triage Stage: | Ready for checkin → Accepted |
I suggested some refactoring that could precede this fix so that more boilerplate doesn't need to be duplicated.
comment:6 by , 6 years ago
Owner: | changed from | to
---|---|
Patch needs improvement: | unset |
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
PS. Im not sure if the tests i wrote are in the correct place. I'd be happy to move them if they don't belong there.