mirror of
https://github.com/e107inc/e107.git
synced 2025-04-15 10:02:02 +02:00
Refined debugging of PDO queries.
This commit is contained in:
parent
c5d1e6876b
commit
f34eeaf369
@ -57,6 +57,15 @@
|
||||
return $this->aTimeMarks;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a list of currently logged items
|
||||
* @return array
|
||||
*/
|
||||
public function getLog()
|
||||
{
|
||||
return $this->aLog;
|
||||
}
|
||||
|
||||
|
||||
function e107_db_debug()
|
||||
{
|
||||
|
@ -309,7 +309,7 @@ class e_db_pdo implements e_db
|
||||
|
||||
if ($debug == 'now')
|
||||
{
|
||||
echo "<pre>** $query</pre><br />\n";
|
||||
$this->dbg->log($query);
|
||||
}
|
||||
if ($debug !== false || strstr($_SERVER['QUERY_STRING'], 'showsql'))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user