diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-06 10:28:31 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-06 10:28:31 +0100 |
| commit | cb4c20cbe7620695112e6f49abf23fffa60dab4d (patch) | |
| tree | ffe59b48b32b47279741b32657183b50f8be2a32 | |
| parent | b57cd1813bcf50f1cf5bfe2234b9074d7a3e03be (diff) | |
| download | HardenedPass-cb4c20cbe7620695112e6f49abf23fffa60dab4d.tar.gz HardenedPass-cb4c20cbe7620695112e6f49abf23fffa60dab4d.zip | |
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 <noreply@anthropic.com>
| -rw-r--r-- | app/src/main/java/app/passwordstore/util/log/LogcatLogger.kt | 2 |
1 files changed, 2 insertions, 0 deletions
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() ?: "") } } |
