mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-26 13:42:49 +02:00
htlcswitch: add debug logs for fetching network result
This commit is contained in:
@@ -128,6 +128,8 @@ func (store *networkResultStore) storeResult(paymentID uint64,
|
||||
store.paymentIDMtx.Lock(paymentID)
|
||||
defer store.paymentIDMtx.Unlock(paymentID)
|
||||
|
||||
log.Debugf("Storing result for paymentID=%v", paymentID)
|
||||
|
||||
// Serialize the payment result.
|
||||
var b bytes.Buffer
|
||||
if err := serializeNetworkResult(&b, result); err != nil {
|
||||
@@ -175,6 +177,8 @@ func (store *networkResultStore) subscribeResult(paymentID uint64) (
|
||||
store.paymentIDMtx.Lock(paymentID)
|
||||
defer store.paymentIDMtx.Unlock(paymentID)
|
||||
|
||||
log.Debugf("Subscribing to result for paymentID=%v", paymentID)
|
||||
|
||||
var (
|
||||
result *networkResult
|
||||
resultChan = make(chan *networkResult, 1)
|
||||
|
Reference in New Issue
Block a user