Skip to content

Commit

Permalink
chore(core): remove redundant 'recordExceptionInCurrentSpan' calls
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Feb 20, 2024
1 parent f7815a5 commit 1986270
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/api/src/app/wallets/update-single-pending-invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ const processPendingInvoice = async ({
const lndService = LndService()
if (lndService instanceof Error) {
pendingInvoiceLogger.error("Unable to initialize LndService")
recordExceptionInCurrentSpan({ error: lndService })
return ProcessPendingInvoiceResult.err(lndService)
}

Expand Down Expand Up @@ -316,7 +315,6 @@ const lockedUpdatePendingInvoiceSteps = async ({
const lndService = LndService()
if (lndService instanceof Error) {
logger.error("Unable to initialize LndService")
recordExceptionInCurrentSpan({ error: lndService })
return ProcessPendingInvoiceResult.err(lndService)
}
// Returns 'true' on re-runs if invoice is already settled in lnd
Expand All @@ -326,7 +324,6 @@ const lockedUpdatePendingInvoiceSteps = async ({
})
if (invoiceSettled instanceof Error) {
logger.error({ paymentHash }, "Unable to settleInvoice")
recordExceptionInCurrentSpan({ error: invoiceSettled })
return ProcessPendingInvoiceResult.err(invoiceSettled)
}
}
Expand Down

0 comments on commit 1986270

Please sign in to comment.