Skip to content

Commit ba68c91

Browse files
committed
chore: context for SettingUpScreen logs
1 parent b879348 commit ba68c91

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

app/src/main/java/to/bitkit/ui/screens/transfer/SettingUpScreen.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ import to.bitkit.ui.utils.withAccentBoldBright
4242
import to.bitkit.utils.Logger
4343
import to.bitkit.viewmodels.TransferViewModel
4444

45-
@Suppress("TooGenericExceptionCaught")
45+
private const val TAG = "SettingUpScreen"
46+
4647
@Composable
4748
fun SettingUpScreen(
4849
viewModel: TransferViewModel,
@@ -59,11 +60,11 @@ fun SettingUpScreen(
5960
delay(5000)
6061

6162
runCatching {
62-
Logger.debug("Auto-mining a block", context = "SettingUpScreen")
63+
Logger.debug("Auto-mining a block", context = TAG)
6364
regtestMine(1u)
64-
Logger.debug("Successfully mined a block", context = "SettingUpScreen")
65+
Logger.debug("Successfully mined a block", context = TAG)
6566
}.onFailure {
66-
Logger.error("Failed to mine block: $it", context = "SettingUpScreen")
67+
Logger.error("Failed to mine block", it, context = TAG)
6768
}
6869
}
6970
}

0 commit comments

Comments
 (0)