1234567891011121314151617181920 |
- <?php
- declare(strict_types=1);
- namespace OC\DB;
- use Doctrine\DBAL\Logging\DebugStack;
- class BacktraceDebugStack extends DebugStack {
- public function startQuery($sql, ?array $params = null, ?array $types = null) {
- parent::startQuery($sql, $params, $types);
- $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
- $this->queries[$this->currentQuery]['backtrace'] = $backtrace;
- $this->queries[$this->currentQuery]['start'] = $this->start;
- }
- }
|