mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Simplified debug_backtrace
This removed arguments (which could contain sensitive data) and also eliminated resources from the trace which failed to json_encode.
This commit is contained in:
parent
b422bd9522
commit
930fbe1c28
@ -432,7 +432,7 @@ final class request {
|
||||
|
||||
$this->error_detail['file'] = $error_file;
|
||||
$this->error_detail['line'] = $error_line;
|
||||
$this->error_detail['trace'] = debug_backtrace(false);
|
||||
$this->error_detail['trace'] = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
|
||||
try {
|
||||
$database = database::get_instance();
|
||||
$this->error_detail['queries'] = $database->get_queries();
|
||||
@ -589,7 +589,7 @@ final class request {
|
||||
|
||||
$this->error_detail['file'] = $error['file'];
|
||||
$this->error_detail['line'] = $error['line'];
|
||||
$this->error_detail['trace'] = debug_backtrace(false);
|
||||
$this->error_detail['trace'] = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
|
||||
try {
|
||||
$database = database::get_instance();
|
||||
$this->error_detail['queries'] = $database->get_queries();
|
||||
|
Loading…
x
Reference in New Issue
Block a user