From b8619f8db01c10500814171631c83da3f770ea03 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 4 Dec 2015 15:58:20 +0300 Subject: store formatted backtrace to sql log --- classes/logger/sql.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'classes/logger/sql.php') diff --git a/classes/logger/sql.php b/classes/logger/sql.php index c0f8b4598..96263a97e 100644 --- a/classes/logger/sql.php +++ b/classes/logger/sql.php @@ -8,8 +8,7 @@ class Logger_SQL { $errstr = Db::get()->escape_string($errstr); $file = Db::get()->escape_string($file); $line = Db::get()->escape_string($line); - $context = ''; // backtrace is a lot of data which is not really critical to store - //$context = $this->dbh->escape_string(serialize($context)); + $context = DB::get()->escape_string($context); $owner_uid = $_SESSION["uid"] ? $_SESSION["uid"] : "NULL"; -- cgit v1.2.3-54-g00ecf