From cb4c20cbe7620695112e6f49abf23fffa60dab4d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 6 Nov 2026 10:28:31 +0100 Subject: fix(app): keep JGit file snapshot lines out of the log FileSnapshot wrote about nine lines in ten of an exported log, pushing older lines out of the logcat buffer. Co-Authored-By: Claude Opus 5.5 --- app/src/main/java/app/passwordstore/util/log/LogcatLogger.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src/main/java') diff --git a/app/src/main/java/app/passwordstore/util/log/LogcatLogger.kt b/app/src/main/java/app/passwordstore/util/log/LogcatLogger.kt index 948e3fa9..5ac2e0db 100644 --- a/app/src/main/java/app/passwordstore/util/log/LogcatLogger.kt +++ b/app/src/main/java/app/passwordstore/util/log/LogcatLogger.kt @@ -31,6 +31,8 @@ class LogcatLogger(name: String) : AbstractLogger(name) { override fun t(message: String, t: Throwable?, vararg args: Any?) = Unit override fun d(message: String, t: Throwable?, vararg args: Any?) { + // JGit's FileSnapshot writes thousands of lines per sync, pushing the rest out of the buffer. + if (name.endsWith(".FileSnapshot")) return logcat(name) { message.fix().format(*args) + (t?.asLog() ?: "") } } -- cgit v1.2.3