Browse Source

show current location timestamp in callback log

pull/23/head
Aaron Parecki 6 years ago
parent
commit
1305d77f35
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      compass/app/Jobs/NotifyOfNewLocations.php

+ 5
- 1
compass/app/Jobs/NotifyOfNewLocations.php View File

@ -32,7 +32,11 @@ class NotifyOfNewLocations extends Job implements SelfHandling, ShouldQueue
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($this->_last_location));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
Log::info("Notifying ".$url." with current location");
$timestamp = '';
if($this->_last_location) {
$timestamp = $this->_last_location['properties']['timestamp'];
}
Log::info("Notifying ".$url." with current location: ".$timestamp);
}
}
}

Loading…
Cancel
Save