feat: Improved ajax debug

This commit is contained in:
Roman Kelesidis 2025-06-11 21:30:37 +03:00
commit 0574641e99

View file

@ -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()) {