mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
feat(ajax): log full ajax request data to console in explain mode
This commit is contained in:
parent
6f03f750ba
commit
64c54524eb
1 changed files with 2 additions and 3 deletions
|
@ -180,9 +180,8 @@ class Ajax
|
|||
if (!empty($_COOKIE['explain'])) {
|
||||
$console_log = [];
|
||||
|
||||
$console_log['action_name'] = $this->response['action'];
|
||||
if (!empty($this->request['mode'])) {
|
||||
$console_log['mode'] = $this->request['mode'];
|
||||
foreach ($this->request as $key => $value) {
|
||||
$console_log[$key] = $value;
|
||||
}
|
||||
|
||||
$this->response['console_log'] = $console_log;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue