From 0574641e99b12d54f6f2a207faa31874dcbbbdc8 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 11 Jun 2025 21:30:37 +0300 Subject: [PATCH] feat: Improved ajax debug --- src/Ajax.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Ajax.php b/src/Ajax.php index 84856a367..8f50eebdf 100644 --- a/src/Ajax.php +++ b/src/Ajax.php @@ -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()) {