From bb240afd21952e765fb5725afab802124dbcce51 Mon Sep 17 00:00:00 2001 From: johan12345 Date: Wed, 26 Feb 2025 19:39:04 +0100 Subject: [PATCH] FusionEngine: change log level --- .../net/vonforst/evmap/location/FusionEngine.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/net/vonforst/evmap/location/FusionEngine.kt b/app/src/main/java/net/vonforst/evmap/location/FusionEngine.kt index 2afec166..29d1df9c 100644 --- a/app/src/main/java/net/vonforst/evmap/location/FusionEngine.kt +++ b/app/src/main/java/net/vonforst/evmap/location/FusionEngine.kt @@ -44,7 +44,7 @@ class FusionEngine(context: Context) : LocationEngine(context), try { return locationManager.getLastKnownLocation(LocationManager.FUSED_PROVIDER) } catch (e: SecurityException) { - Log.e(TAG, "Permissions not granted for fused provider", e) + Log.w(TAG, "Permissions not granted for fused provider", e) } } @@ -68,7 +68,7 @@ class FusionEngine(context: Context) : LocationEngine(context), } } } catch (e: SecurityException) { - Log.e(TAG, "Permissions not granted for provider: $provider", e) + Log.w(TAG, "Permissions not granted for provider: $provider", e) } } return bestLocation @@ -103,7 +103,7 @@ class FusionEngine(context: Context) : LocationEngine(context), enableFused(gpsInterval) checkLastKnownFused() } catch (e: SecurityException) { - Log.e(TAG, "Permissions not granted for fused provider", e) + Log.w(TAG, "Permissions not granted for fused provider", e) } } @@ -159,7 +159,7 @@ class FusionEngine(context: Context) : LocationEngine(context), looper ) } catch (e: IllegalArgumentException) { - Log.e(TAG, "Unable to register for GPS updates.", e) + Log.w(TAG, "Unable to register for GPS updates.", e) } } @@ -174,7 +174,7 @@ class FusionEngine(context: Context) : LocationEngine(context), looper ) } catch (e: IllegalArgumentException) { - Log.e(TAG, "Unable to register for network updates.", e) + Log.w(TAG, "Unable to register for network updates.", e) } } @@ -189,7 +189,7 @@ class FusionEngine(context: Context) : LocationEngine(context), looper ) } catch (e: IllegalArgumentException) { - Log.e(TAG, "Unable to register for passive updates.", e) + Log.w(TAG, "Unable to register for passive updates.", e) } } @@ -205,7 +205,7 @@ class FusionEngine(context: Context) : LocationEngine(context), looper ) } catch (e: IllegalArgumentException) { - Log.e(TAG, "Unable to register for passive updates.", e) + Log.w(TAG, "Unable to register for passive updates.", e) } }