Project

General

Profile

Actions

Feature #15897

closed

enable various DB-Logging *inside* TYPO3

Added by Peter Niederlag over 18 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2006-03-25
Due date:
% Done:

0%

Estimated time:
PHP Version:
4
Tags:
Complexity:
Sprint Focus:

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

bug_2988.diff (6.18 KB) bug_2988.diff Administrator Admin, 2008-01-31 12:16

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #16914: Optimizing tables to speed up FEClosedDmitry Dulepov2007-01-28

Actions
Actions #1

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.

Actions #2

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.

Actions

Also available in: Atom PDF