joomla / joomla-framework

[READ-ONLY] This repo is no longer in active development. Please see https://github.com/joomla-framework for the individual Framework packages.
http://framework.joomla.org
GNU General Public License v2.0
189 stars 140 forks source link

Add backtrace information to database debug log #233

Closed elkuku closed 11 years ago

elkuku commented 11 years ago

This will pass the backtrace information to any attached logger when executing a database query in debug mode.

Currently implemented for Mysql, Mysqli, "Pdo", PostgreSql, and SqlSrv drivers.

An example implementation might render like this:

issues list 2013-10-03 13-36-10

eddieajau commented 11 years ago

:+1:

dongilbert commented 11 years ago

Is there a reason to not add it to the others? Oh yeah, and :+1:

elkuku commented 11 years ago

Actually I only modified the drivers I was able to test, but functionality should be the same so I went ahead and changed the other ones too.

realityking commented 11 years ago

Is it just me or is the driver the wrong place to do these things?