Skip to content

Commit

Permalink
feat(incoming-payment): error log
Browse files Browse the repository at this point in the history
  • Loading branch information
golobitch committed Aug 13, 2024
1 parent ea46b1e commit fe7f430
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ async function createIncomingPayment(
if (response) return response
return IncomingPaymentError.ActionNotPerformed
} catch (err) {
const errorMessage = 'Got error / timeout while polling incoming payment'
deps.logger.error(
{ errorMessage: err instanceof Error && err.message },
errorMessage
)
return IncomingPaymentError.ActionNotPerformed
}
}
Expand Down

0 comments on commit fe7f430

Please sign in to comment.