From 39c2e3bd6d53a7eedae40721e2ae43b1b5f41571 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Thu, 4 Nov 2021 01:39:03 +0200 Subject: [PATCH] Log IP for VDM reports --- api/app/Http/Controllers/V1/Partners/VdmController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/app/Http/Controllers/V1/Partners/VdmController.php b/api/app/Http/Controllers/V1/Partners/VdmController.php index 926e924..b7226ea 100644 --- a/api/app/Http/Controllers/V1/Partners/VdmController.php +++ b/api/app/Http/Controllers/V1/Partners/VdmController.php @@ -7,6 +7,8 @@ use App\Http\Controllers\Controller; //use App\Http\Requests\VdmRequest; use Carbon\Carbon; use Illuminate\Support\Facades\DB; +use Illuminate\Http\Request; +use Illuminate\Support\Facades\Log; class VdmController extends Controller { @@ -29,6 +31,7 @@ class VdmController extends Controller // ]; // } // DB::table('vdm')->insert($records); + Log::info('Received VDM report from IP '.\Request::ip().'. Storing into database'); return response()->json(['success' => 'success'], 200); } -- 2.2.2