feat: Improved ajax debug (#1941)

This commit is contained in:
Roman Kelesidis 2025-06-11 21:32:23 +03:00 committed by GitHub
commit 6f03f750ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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