Skip to content

Commit

Permalink
Update track logs (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Mar 10, 2024
1 parent 9c5d9b2 commit 56ec038
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Http/Middleware/TrackPageview.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 56ec038

Please sign in to comment.