From 31e81f31b4af50639f5f791b31637502572004f0 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Sun, 21 Feb 2021 17:14:02 -0700 Subject: [PATCH] Fix URI logging in ViewModel --- .../wbrawner/simplemarkdown/viewmodel/MarkdownViewModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/viewmodel/MarkdownViewModel.kt b/app/src/main/java/com/wbrawner/simplemarkdown/viewmodel/MarkdownViewModel.kt index 76f8b05..dfca19c 100644 --- a/app/src/main/java/com/wbrawner/simplemarkdown/viewmodel/MarkdownViewModel.kt +++ b/app/src/main/java/com/wbrawner/simplemarkdown/viewmodel/MarkdownViewModel.kt @@ -66,10 +66,10 @@ class MarkdownViewModel(val timber: Timber.Tree = Timber.asTree()) : ViewModel() suspend fun save(context: Context, givenUri: Uri? = null): Boolean { val uri = givenUri?.let { - timber.i("Saving file with given uri: $uri") + timber.i("Saving file with given uri: $it") it } ?: this.uri.value?.let { - timber.i("Saving file with cached uri: $uri") + timber.i("Saving file with cached uri: $it") it } ?: run { timber.w("Save called with no uri")