Clean up logging.
This commit is contained in:
parent
f15a629731
commit
4508aa7c35
2 changed files with 3 additions and 4 deletions
|
@ -82,7 +82,7 @@ public final class PlacePickerActivity extends AppCompatActivity {
|
|||
) {
|
||||
fusedLocationClient.getLastLocation()
|
||||
.addOnFailureListener(e -> {
|
||||
Log.e(TAG, "Failed to get location", e);
|
||||
Log.w(TAG, "Failed to get location", e);
|
||||
setInitialLocation(PRIME_MERIDIAN);
|
||||
})
|
||||
.addOnSuccessListener(location -> {
|
||||
|
@ -209,14 +209,13 @@ public final class PlacePickerActivity extends AppCompatActivity {
|
|||
List<Address> result = geocoder.getFromLocation(latLng.latitude, latLng.longitude, 1);
|
||||
return !result.isEmpty() ? result.get(0) : null;
|
||||
} catch (IOException e) {
|
||||
Log.e(TAG, "Failed to get address from location", e);
|
||||
Log.w(TAG, "Failed to get address from location", e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPostExecute(@Nullable Address address) {
|
||||
Log.d(TAG, String.format("%s", addressToString(address)));
|
||||
currentAddress = address;
|
||||
if (address != null) {
|
||||
bottomSheet.showResult(address.getLatitude(), address.getLongitude(), addressToShortString(address), addressToString(address));
|
||||
|
|
|
@ -74,7 +74,7 @@ public final class GenericForegroundService extends Service {
|
|||
if (iterator.hasNext()) {
|
||||
postObligatoryForegroundNotification(iterator.next());
|
||||
} else {
|
||||
Log.d(TAG, "Last request. Ending foreground service.");
|
||||
Log.i(TAG, "Last request. Ending foreground service.");
|
||||
postObligatoryForegroundNotification(lastPosted != null ? lastPosted : DEFAULTS);
|
||||
stopForeground(true);
|
||||
stopSelf();
|
||||
|
|
Loading…
Add table
Reference in a new issue