From 014c7a62c047e0686b5f3c55ee6f916a48463877 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 27 Nov 2022 13:02:04 +0530 Subject: chore: use `asLog` extension instead of duplicating --- app/src/main/java/app/passwordstore/ui/git/config/GitConfigActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/main') diff --git a/app/src/main/java/app/passwordstore/ui/git/config/GitConfigActivity.kt b/app/src/main/java/app/passwordstore/ui/git/config/GitConfigActivity.kt index 2603dfdf..68684582 100644 --- a/app/src/main/java/app/passwordstore/ui/git/config/GitConfigActivity.kt +++ b/app/src/main/java/app/passwordstore/ui/git/config/GitConfigActivity.kt @@ -19,6 +19,7 @@ import app.passwordstore.databinding.ActivityGitConfigBinding import app.passwordstore.ui.dialogs.TextInputDialog import app.passwordstore.ui.git.base.BaseGitActivity import app.passwordstore.ui.git.log.GitLogActivity +import app.passwordstore.util.extensions.asLog import app.passwordstore.util.extensions.viewBinding import com.github.michaelbull.result.fold import com.github.michaelbull.result.getOrElse @@ -91,7 +92,7 @@ class GitConfigActivity : BaseGitActivity() { } binding.gitLog.setOnClickListener { runCatching { startActivity(Intent(this, GitLogActivity::class.java)) } - .onFailure { ex -> logcat(ERROR) { "Failed to start GitLogActivity\n${ex}" } } + .onFailure { ex -> logcat(ERROR) { ex.asLog("Failed to start GitLogActivity") } } } binding.gitAbortRebase.setOnClickListener { lifecycleScope.launch { -- cgit v1.2.3