From 56ec038a0dd2585066dbe9b4922f38953a2dca92 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Sun, 10 Mar 2024 15:25:09 +0100 Subject: [PATCH] Update track logs (#1050) --- app/Http/Middleware/TrackPageview.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Middleware/TrackPageview.php b/app/Http/Middleware/TrackPageview.php index c8c6afa..4b5a0ec 100644 --- a/app/Http/Middleware/TrackPageview.php +++ b/app/Http/Middleware/TrackPageview.php @@ -47,9 +47,8 @@ public function track( Log::info('Pirsch '.($name === null ? 'hit' : 'event'), [ 'url' => request()->fullUrl(), 'ip' => request()->ip(), - 'REMOTE_ADDR' => request()->server('REMOTE_ADDR'), - 'X_FORWARDED_FOR' => request()->header('X-Forwarded-For'), - 'headers' => request()->headers->all() + 'server' => request()->server->all(), + 'headers' => request()->headers->all(), ]); try {