multi: add SpewLogClosure to avoid code repetition

This commit is contained in:
yyforyongyu
2024-07-25 22:18:00 +08:00
parent b6049ff94b
commit d992cf94d6
19 changed files with 57 additions and 144 deletions

View File

@ -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,