From 11ebfbdd5cf3b277228c28084ae875f3b0ae9560 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Thu, 1 Jun 2023 18:50:15 +0600 Subject: [PATCH] Increase glide log level issue: https://gitlab.e.foundation/e/backlog/-/issues/6839 --- .../owncloud/notes/shared/util/CustomAppGlideModule.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/src/main/java/it/niedermann/owncloud/notes/shared/util/CustomAppGlideModule.java b/app/src/main/java/it/niedermann/owncloud/notes/shared/util/CustomAppGlideModule.java index 4ffd23426..6178dc6ed 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/shared/util/CustomAppGlideModule.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/shared/util/CustomAppGlideModule.java @@ -7,6 +7,7 @@ import androidx.annotation.NonNull; import androidx.annotation.UiThread; import com.bumptech.glide.Glide; +import com.bumptech.glide.GlideBuilder; import com.bumptech.glide.Registry; import com.bumptech.glide.annotation.GlideModule; import com.bumptech.glide.module.AppGlideModule; @@ -20,6 +21,12 @@ public class CustomAppGlideModule extends AppGlideModule { private static final String TAG = CustomAppGlideModule.class.getSimpleName(); private static final ExecutorService clearDiskCacheExecutor = Executors.newSingleThreadExecutor(); + @Override + public void applyOptions(@NonNull Context context, @NonNull GlideBuilder builder) { + super.applyOptions(context, builder); + builder.setLogLevel(android.util.Log.ERROR); + } + @Override public void registerComponents(@NonNull Context context, @NonNull Glide glide, @NonNull Registry registry) { super.registerComponents(context, glide, registry); -- GitLab