Feature #15897
closedenable various DB-Logging *inside* TYPO3
0%
Description
The TS-debugger in adminPanel (FE) has an option "Explain Select queries". Currently that is of no usage, since the $GLOBALS['TT'] Object does not receive the needed information to show this Information.
So one feature-request is to have some option to put the build (executed) queries into that stack in $TT (see below for an unclean patch).
While talking on -dev there have also been request to put this information in some other logging places (maybe use new syslog-facility)
My main concern is to put that straght away into the TS-debugger, because it is a great (only?) chance to see the queries very close to n the context where they are used. That is a good way of learning about TYPO3-Internals.
(re-?)enabling of logging DB-queries in the TS-Debugger:
all it needs is a little modification to class.t3lib_db->exec_SELECTquery
--------adding a call to TT ---------------
if ($this->debugOutput) {
$this->debug('exec_SELECTquery');
$GLOBALS['TT']->setTSselectQuery($this->debug_lastBuiltQuery,''Test
of enabling SelectDebugging into AdminPanel/TSDebugger'');
}
-------------------------------------------
(issue imported from #M2988)
Files
Updated by Michael Stucki almost 17 years ago
The attached patch implements this feature. Code was originally written by Kasper, I only implemented the TS admin panel integration.
Updated by Christian Kuhn about 16 years ago
Commited 2008-02-04 in rev. 3054:
http://forge.typo3.org/repositories/diff/typo3v4-core?rev=3054
Please set to resolved and close.