From 64c54524eb507d0d99dbe4e973eca45de637c8ba Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 11 Jun 2025 21:36:56 +0300 Subject: [PATCH] feat(ajax): log full ajax request data to console in explain mode --- src/Ajax.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Ajax.php b/src/Ajax.php index 8f50eebdf..07dbaad7c 100644 --- a/src/Ajax.php +++ b/src/Ajax.php @@ -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;