Merge pull request #655 from shocknet/some.more.log

more logs
This commit is contained in:
Justin (shocknet) 2024-03-18 12:58:34 -04:00 committed by GitHub
commit e2f22e5c14
2 changed files with 3 additions and 3 deletions

View file

@ -135,7 +135,7 @@ export default class {
}
async PayInvoice(userId: string, req: Types.PayInvoiceRequest, linkedApplication: Application): Promise<Types.PayInvoiceResponse> {
this.log("paying invoice", req.invoice)
this.log("paying invoice", req.invoice, "for user", userId, "with amount", req.amount)
const decoded = await this.lnd.DecodeInvoice(req.invoice)
if (decoded.numSatoshis !== 0 && req.amount !== 0) {
throw new Error("invoice has value, do not provide amount the the request")

View file

@ -89,7 +89,7 @@ export default class HtlcTracker {
return this.incrementReceiveFailures(incomingChannelId)
}
}
this.log("unknown htlc event type for failure event")
this.log("unknown htlc event type for failure event", eventType)
}
handleSuccess = ({ eventType, outgoingHtlcId, incomingHtlcId }: EventInfo) => {
@ -104,7 +104,7 @@ export default class HtlcTracker {
if (this.deleteMapEntry(incomingHtlcId, this.pendingReceiveHtlcs) !== null) return
if (this.deleteMapEntry(outgoingHtlcId, this.pendingForwardHtlcs) !== null) return
} else {
this.log("unknown htlc event type for success event")
this.log("unknown htlc event type for success event", eventType)
}
}