mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Show query errors in debug panel and error log
This commit is contained in:
parent
714035c3a0
commit
2db14c1ea9
2 changed files with 25 additions and 2 deletions
|
|
@ -369,7 +369,7 @@ class DB
|
|||
$log['time'] = date('Y-m-d H:i:s');
|
||||
$log['backtrace'] = array();
|
||||
|
||||
if (config('debug.enabled') && in_array('queries', config('debug.display_content')))
|
||||
if (config('debug.enabled') && ($this->isError() || in_array('queries', config('debug.display_content'))))
|
||||
{
|
||||
$bt = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
|
||||
foreach($bt as $no => $call)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue