From cd58d5d07de5e41af00c480b093b50ca7617b800 Mon Sep 17 00:00:00 2001 From: alext Date: Wed, 16 Jan 2019 10:03:25 +0100 Subject: [PATCH] Added backtrace in debug log entries. --- src/system/core/Exceptions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/core/Exceptions.php b/src/system/core/Exceptions.php index 5a78376a..c1bd78b2 100644 --- a/src/system/core/Exceptions.php +++ b/src/system/core/Exceptions.php @@ -102,7 +102,7 @@ class CI_Exceptions { public function log_exception($severity, $message, $filepath, $line) { $severity = isset($this->levels[$severity]) ? $this->levels[$severity] : $severity; - log_message('error', 'Severity: '.$severity.' --> '.$message.' '.$filepath.' '.$line); + log_message('error', 'Severity: '.$severity.' --> '.$message.' '.$filepath.' '.$line.' '.PHP_EOL.print_r(debug_backtrace(), true)); } // --------------------------------------------------------------------