From 0c21c7e7cda778277668a9ad3dbf2a317dae65b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Granh=C3=A3o?= Date: Mon, 30 Dec 2024 14:55:40 +0000 Subject: [PATCH] Fix logs using non-existent txid --- .../kotlin/breez_sdk_liquid_notification/job/SwapUpdated.kt | 2 +- .../langs/swift/Sources/BreezSDKLiquid/Task/SwapUpdated.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bindings/langs/android/lib/src/main/kotlin/breez_sdk_liquid_notification/job/SwapUpdated.kt b/lib/bindings/langs/android/lib/src/main/kotlin/breez_sdk_liquid_notification/job/SwapUpdated.kt index e12ffd2a2..532a298c6 100644 --- a/lib/bindings/langs/android/lib/src/main/kotlin/breez_sdk_liquid_notification/job/SwapUpdated.kt +++ b/lib/bindings/langs/android/lib/src/main/kotlin/breez_sdk_liquid_notification/job/SwapUpdated.kt @@ -147,7 +147,7 @@ class SwapUpdatedJob( private fun notifyPaymentWaitingFeeAcceptance(payment: Payment) { if (!this.notified) { - logger.log(TAG, "Payment ${payment.txId} requires fee acceptance", "INFO") + logger.log(TAG, "Payment with swap ID ${getSwapId(payment.details)} requires fee acceptance", "INFO") notifyChannel( context, NOTIFICATION_CHANNEL_SWAP_UPDATED, diff --git a/lib/bindings/langs/swift/Sources/BreezSDKLiquid/Task/SwapUpdated.swift b/lib/bindings/langs/swift/Sources/BreezSDKLiquid/Task/SwapUpdated.swift index d7b0d0867..26a74d2e2 100644 --- a/lib/bindings/langs/swift/Sources/BreezSDKLiquid/Task/SwapUpdated.swift +++ b/lib/bindings/langs/swift/Sources/BreezSDKLiquid/Task/SwapUpdated.swift @@ -91,7 +91,7 @@ class SwapUpdatedTask : TaskProtocol { func notifyPaymentWaitingFeeAcceptance(payment: Payment) { if !self.notified { - self.logger.log(tag: TAG, line: "Payment \(payment.txId ?? "") requires fee acceptance", level: "INFO") + self.logger.log(tag: TAG, line: "Payment \(self.getSwapId(details: payment.details) ?? "") requires fee acceptance", level: "INFO") let notificationTitle = ResourceHelper.shared.getString( key: Constants.PAYMENT_WAITING_FEE_ACCEPTANCE_TITLE, fallback: Constants.DEFAULT_PAYMENT_WAITING_FEE_ACCEPTANCE_TITLE)