mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-12 17:09:21 +02:00
Log PDO queries, as stated in docs, but doesn't work yet (don't know the reason)
This commit is contained in:
parent
7403a24030
commit
dedd54286f
@ -372,6 +372,10 @@ class POT
|
||||
|
||||
$this->db = new OTS_DB_MySQL($params);
|
||||
|
||||
global $debugBar;
|
||||
$pdo = new DebugBar\DataCollector\PDO\TraceablePDO($this->db);
|
||||
$debugBar->addCollector(new DebugBar\DataCollector\PDO\PDOCollector($pdo));
|
||||
|
||||
$this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user