diff --git a/e107_handlers/mysql_class.php b/e107_handlers/mysql_class.php index ed454f7be..0ce1d4dda 100644 --- a/e107_handlers/mysql_class.php +++ b/e107_handlers/mysql_class.php @@ -488,7 +488,7 @@ class e_db_mysql implements e_db if ($debug == 'now') { - echo "
** $query

\n"; + $this->dbg->log($query); } if ($debug !== FALSE || strstr($_SERVER['QUERY_STRING'], 'showsql')) {