Skip to content

Commit abe54f5

Browse files
committed
chore: add debug info for GoogleGeoCodingAPI
1 parent bf9ee0a commit abe54f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Services/Apis/GoogleGeoCodingAPI.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ public function getGeoCoordinates(AddressInfo $address_info)
8585
$params['postal_code'] = urlencode($zip_code);
8686
}
8787

88+
Log::warning("GoogleGeoCodingAPI::getGeoCoordinates", ['params' => $params]);
8889
$response = $this->doRequest($params);
8990

9091
if($response['status'] != GoogleGeoCodingAPI::ResponseStatusOK){
92+
Log::warning("GoogleGeoCodingAPI::getGeoCoordinates", ['response' => $response]);
9193
throw new GeoCodingApiException($response['status']);
9294
}
9395

@@ -223,4 +225,4 @@ public function getAddressInfo(GeoCoordinatesInfo $coordinates)
223225
isset($components['country']) ? $components['country'] : ''
224226
);
225227
}
226-
}
228+
}

0 commit comments

Comments
 (0)