Added backtrace in debug log entries.

This commit is contained in:
alext 2019-01-16 10:03:25 +01:00
parent 0c683ad990
commit cd58d5d07d

View file

@ -102,7 +102,7 @@ class CI_Exceptions {
public function log_exception($severity, $message, $filepath, $line) public function log_exception($severity, $message, $filepath, $line)
{ {
$severity = isset($this->levels[$severity]) ? $this->levels[$severity] : $severity; $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));
} }
// -------------------------------------------------------------------- // --------------------------------------------------------------------