Skip to content

Commit b8e87f5

Browse files
committed
Suppress boring errors
1 parent 07e7a9b commit b8e87f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/be/mygod/reactmap/follower/LocationSetter.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ class LocationSetter(appContext: Context, workerParams: WorkerParameters) : Coro
172172
withContext(Dispatchers.Main) { BackgroundLocationReceiver.stop() }
173173
Result.failure()
174174
} else {
175-
Timber.w(Exception(error + code))
175+
if (code == 502 || code == 522 || code == 523) {
176+
Timber.d(Exception(error + code))
177+
} else Timber.w(Exception(error + code))
176178
Result.retry()
177179
}
178180
}

0 commit comments

Comments
 (0)