1
0
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:
Cameron 2019-02-13 11:35:28 -08:00
parent c5d1e6876b
commit f34eeaf369
2 changed files with 10 additions and 1 deletions

View File

@ -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()
{

View File

@ -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'))
{