[Dbix-class] Debugging/trace output patch
Nigel Metheringham
nigel.metheringham at dev.intechnology.co.uk
Wed Jan 25 13:26:09 CET 2006
As discussed a couple of weeks back here is a patch to do 2 things:-
1. Remove the superfluous warn location information from the
debugging sql trace.
2. Allow debug to be sent to a different filehandle (default still
STDERR).
I was originally thinking in terms of replicating the DBI trace call
API, however I have stayed with orthogonal debug and debugfh methods for
simplicity and to ensure I don't slow down the common case (no debug
occurring).
There is some DBI trace-like environment variable magic handled in
new(). Eg
export DBIX_CLASS_STORAGE_DBI_DEBUG="1=/tmp/trace.out"
sends the debug output to the file /tmp/trace.out
POD updates are included.
Let me know if you hate it and want it changed :-)
Nigel.
--
[ Nigel Metheringham Nigel.Metheringham at InTechnology.co.uk ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbix-class-debugoutput.patch
Type: text/x-patch
Size: 2942 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20060125/66821fc8/dbix-class-debugoutput.bin
More information about the Dbix-class
mailing list