cashless2ecash

cashless2ecash: pay with cards for digital cash (experimental)
Log | Files | Refs | README

commit 8ae3bea92736707b8bce367aa77e695bc00ebe48
parent f7ed6cf4cc2c2114008a01db4ee9298c07a865cf
Author: Joel-Haeberli <haebu@rubigen.ch>
Date:   Mon,  3 Jun 2024 20:41:37 +0200

fix: enhance logging

Diffstat:
Mc2ec/proc-transfer.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/c2ec/proc-transfer.go b/c2ec/proc-transfer.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "strings" "time" ) @@ -166,7 +167,7 @@ func executePendingTransfers(errs chan error, lastlog time.Time) { } LogInfo("proc-transfer", "refunding transaction "+tid) - err = client.Refund(tid) + err = client.Refund(strings.Trim(tid, " \n")) if err != nil { LogWarn("proc-transfer", "refunding using provider client failed") LogError("proc-transfer-4", err)