From e4759b03d268e56dd3d53584f1c30a712a976691 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 12 Jun 2024 09:15:30 +0200 Subject: [PATCH] Do not log error in case of 404. --- .../features/call/impl/utils/ElementCallBaseUrlProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/ElementCallBaseUrlProvider.kt b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/ElementCallBaseUrlProvider.kt index 6c24a51ac4..e3f32edb86 100644 --- a/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/ElementCallBaseUrlProvider.kt +++ b/features/call/impl/src/main/kotlin/io/element/android/features/call/impl/utils/ElementCallBaseUrlProvider.kt @@ -44,11 +44,11 @@ class DefaultElementCallBaseUrlProvider @Inject constructor( try { callWellknownAPI.getCallWellKnown().widgetUrl } catch (e: HttpException) { - Timber.w(e, "Failed to fetch wellknown data") // Ignore Http 404, but re-throws any other exceptions if (e.code() != HttpURLConnection.HTTP_NOT_FOUND) { throw e } + Timber.w(e, "Failed to fetch wellknown data") null } }