Skip to content


DBAL-39: SQL Logger should log the last failed query #1580

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user mridgway:

The SQL Logger is only called after a query has been executed (this was changed to allow profiling of the queries). This makes it difficult to determine which query has failed.

The commit that changed the functionality is at:

It seems that the logger interface needs to be changed to two functions, a pre-query function and a post-query function. Profiling should be handled by the logger if it chooses and not by the connection class.


Comment created by @beberlei:

After lots of thinking i changed the Logger again to have a startQuery() and a stopQuery() method now.


Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0.0-BETA4 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.