Log stack trace along with slow queries.

Makes it a lot easier to see at a glance where in the code the query is.