mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 10:35:32 +02:00
multi: add SpewLogClosure
to avoid code repetition
This commit is contained in:
@ -5846,9 +5846,7 @@ func (r *rpcServer) LookupInvoice(ctx context.Context,
|
||||
}
|
||||
|
||||
rpcsLog.Tracef("[lookupinvoice] located invoice %v",
|
||||
lnutils.NewLogClosure(func() string {
|
||||
return spew.Sdump(invoice)
|
||||
}))
|
||||
lnutils.SpewLogClosure(invoice))
|
||||
|
||||
rpcInvoice, err := invoicesrpc.CreateRPCInvoice(
|
||||
&invoice, r.cfg.ActiveNetParams.Params,
|
||||
|
Reference in New Issue
Block a user