cashless2ecash

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

commit 401d2cc15dd6c0191596e2bb9c8a55239aa92c90
parent f1d8cacb91336a023f0068da7823b3e5352ad287
Author: Joel-Haeberli <haebu@rubigen.ch>
Date:   Mon,  3 Jun 2024 17:24:43 +0200

fix: enhance logging

Diffstat:
Mc2ec/http-util.go | 2--
Mc2ec/proc-transfer.go | 2+-
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/c2ec/http-util.go b/c2ec/http-util.go @@ -94,8 +94,6 @@ func ReadStructFromBody[T any](req *http.Request, codec Codec[T]) (*T, error) { return nil, err } - LogInfo("http-util", fmt.Sprintf("received body in request:\n%s\n", string(bodyBytes))) - return codec.Decode(bytes.NewReader(bodyBytes)) } diff --git a/c2ec/proc-transfer.go b/c2ec/proc-transfer.go @@ -39,9 +39,9 @@ func RunTransferrer( time.Sleep(REFUND_RETRY_INTERVAL_SECONDS * time.Second) if lastlog.Before(time.Now().Add(time.Second * -30)) { LogInfo("proc-transfer", "transferrer executing transfers") - lastlog = time.Now() } executePendingTransfers(errs, lastlog) + lastlog = time.Now() } }() }