1
1
mirror of https://github.com/bumi/lntip synced 2026-02-13 21:07:48 +00:00

Better error logging

This commit is contained in:
2019-02-21 02:13:31 +01:00
parent b49e118e47
commit 3029a91726
2 changed files with 13 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ type LNDclient struct {
func (c LNDclient) AddInvoice(value int64, memo string) (Invoice, error) {
result := Invoice{}
stdOutLogger.Printf("Creating invoice: memo=%s amount=%v ", memo, value)
stdOutLogger.Printf("Adding invoice: memo=%s amount=%v ", memo, value)
invoice := lnrpc.Invoice{
Memo: memo,
Value: value,
@@ -54,7 +54,7 @@ func (c LNDclient) AddInvoice(value int64, memo string) (Invoice, error) {
// An error is returned if no corresponding invoice was found.
func (c LNDclient) GetInvoice(paymentHashStr string) (Invoice, error) {
var invoice Invoice
stdOutLogger.Printf("Lookup invoice: hash=%s\n", paymentHashStr)
stdOutLogger.Printf("Getting invoice: hash=%s\n", paymentHashStr)
plainHash, err := hex.DecodeString(paymentHashStr)
if err != nil {