Skip to content

Commit de2241f

Browse files
committed
refactor: Improve log level
1 parent 8bfb2a5 commit de2241f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ class AppViewModel @Inject constructor(
554554
val amountInUsd = currencyService.convertSatsToFiat(amountSats.toLong(), "USD")
555555
if (amountInUsd <= SEND_AMOUNT_WARNING_THRESHOLD) return false
556556

557-
Logger.info("Showing send amount warning for $amountSats sats = $$amountInUsd USD")
557+
Logger.debug("Showing send amount warning for $amountSats sats = $$amountInUsd USD")
558558

559559
_sendUiState.update {
560560
it.copy(showAmountWarningDialog = true)
@@ -659,8 +659,7 @@ class AppViewModel @Inject constructor(
659659
bolt11: String,
660660
amount: ULong? = null,
661661
): Result<PaymentId> {
662-
val hash =
663-
lightningService.payInvoice(bolt11 = bolt11, sats = amount).getOrNull() // TODO HANDLE FAILURE IN OTHER PR
662+
val hash = lightningService.payInvoice(bolt11 = bolt11, sats = amount).getOrNull() // TODO HANDLE FAILURE IN OTHER PR
664663

665664
// Wait until matching payment event is received
666665
val result = ldkNodeEventBus.events.watchUntil { event ->

0 commit comments

Comments
 (0)