|
From: Clifton W. <cl...@sl...> - 2003-10-23 03:01:38
|
Here's the initial patch. It's been a while since I've done this so I
hope I have it all in the first go.
This should be patchable against the latest Slash version in CVS
although it *may* (no guarantees) work for earlier T_ and R_
tags.
To use, do the following. In your conf files, add:
PerlModule Slash::DB::Utility::Debug
SlashDebugSQL "<name of packages or files>"
So:
PerlModule Slash::DB::Utility::Debug
SlashDebugSQL "Slash::Search admin.pl"
Should dump all SQL executed by the Search plugin or the Admin
script.
At shane's request, I've added the following directive:
SlashDebugSQLLog "/path/to/sql/log"
Which does just about what you'd expect. If the log
isn't specified, SQL is dumped to your error logs.
Enjoy and let me know if any bugs unexpectedly
slap you around.
Patch is attached.
- Cliff
PS - Please note that the PerlModule and SlashDebug* directives
only need to appear once in your conf files.
|