#15897enable various DB-Logging *inside* TYPO3
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.