1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

store formatted backtrace to sql log

This commit is contained in:
Andrew Dolgov
2015-12-04 15:58:20 +03:00
parent 555afc2ea7
commit b8619f8db0
3 changed files with 37 additions and 5 deletions

View File

@@ -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";