From 24538f78d43f646b5661874bec22358106345093 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Tue, 25 Oct 2022 18:00:22 +0000 Subject: [PATCH] log notify response --- compass/app/Jobs/NotifyOfNewLocations.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compass/app/Jobs/NotifyOfNewLocations.php b/compass/app/Jobs/NotifyOfNewLocations.php index f436b28..944e2ba 100644 --- a/compass/app/Jobs/NotifyOfNewLocations.php +++ b/compass/app/Jobs/NotifyOfNewLocations.php @@ -39,12 +39,13 @@ class NotifyOfNewLocations extends Job implements SelfHandling, ShouldQueue ]); curl_setopt($ch, CURLOPT_POSTFIELDS, $location); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_exec($ch); + $response = curl_exec($ch); $timestamp = ''; if($db->last_location) { $timestamp = json_decode($db->last_location)->properties->timestamp; } Log::info("Notifying ".$url." with current location: ".$timestamp); + Log::info($response); } } }