mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
feat: Improved ajax debug
This commit is contained in:
parent
a27d504c7d
commit
0574641e99
1 changed files with 8 additions and 1 deletions
|
@ -178,7 +178,14 @@ class Ajax
|
|||
|
||||
// Show ajax action in console log
|
||||
if (!empty($_COOKIE['explain'])) {
|
||||
$this->response['console_log'] = 'ajax action: ' . $this->response['action'];
|
||||
$console_log = [];
|
||||
|
||||
$console_log['action_name'] = $this->response['action'];
|
||||
if (!empty($this->request['mode'])) {
|
||||
$console_log['mode'] = $this->request['mode'];
|
||||
}
|
||||
|
||||
$this->response['console_log'] = $console_log;
|
||||
}
|
||||
|
||||
if (Dev::sqlDebugAllowed()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue