From 24196adaddb73c5cb294f5cb1e7be6124b593e2b Mon Sep 17 00:00:00 2001 From: Jonathan Klee Date: Mon, 16 Oct 2023 12:39:48 +0200 Subject: [PATCH] Make NoSuchFileException less verbose It was flooding Sentry with 104K events. --- .../foundation/e/drive/operations/DownloadFileOperation.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/foundation/e/drive/operations/DownloadFileOperation.java b/app/src/main/java/foundation/e/drive/operations/DownloadFileOperation.java index 103c7ed1..942fd11d 100644 --- a/app/src/main/java/foundation/e/drive/operations/DownloadFileOperation.java +++ b/app/src/main/java/foundation/e/drive/operations/DownloadFileOperation.java @@ -34,6 +34,7 @@ import com.owncloud.android.lib.resources.files.model.RemoteFile; import java.io.File; import java.io.IOException; import java.nio.file.Files; +import java.nio.file.NoSuchFileException; import java.nio.file.Path; import foundation.e.drive.database.DbHelper; @@ -185,6 +186,8 @@ public class DownloadFileOperation extends RemoteOperation { tmpFile.delete(); return true; } + } catch (NoSuchFileException exception) { + Timber.w(exception); } catch (IOException | SecurityException | NullPointerException exception) { Timber.e(exception); } -- GitLab