commit 20db0daee999986b92a482db12382cefa9cd4db5
parent 36e209852b69309d53c2dd3620b04a020ea939b5
Author: Joel-Haeberli <haebu@rubigen.ch>
Date: Mon, 3 Jun 2024 12:48:08 +0200
fix: enhance logging
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/c2ec/proc-transfer.go b/c2ec/proc-transfer.go
@@ -59,6 +59,7 @@ func transferCallback(notification *Notification, errs chan error) {
transfer, err := DB.GetTransferById(transferRequestUid)
if err != nil {
+ LogWarn("proc-transfer", "unable to retrieve transfer with requestUid")
LogError("proc-transfer", err)
transferFailed(transfer, errs)
errs <- err
@@ -75,6 +76,7 @@ func transferCallback(notification *Notification, errs chan error) {
paytoTargetType, tid, err := ParsePaytoUri(transfer.CreditAccount)
if err != nil {
+ LogWarn("proc-transfer", "unable to parse payto-uri="+transfer.CreditAccount)
errs <- errors.New("malformed transfer request uid: " + err.Error())
transferFailed(transfer, errs)
return
@@ -82,6 +84,7 @@ func transferCallback(notification *Notification, errs chan error) {
provider, err := DB.GetTerminalProviderByPaytoTargetType(paytoTargetType)
if err != nil {
+ LogWarn("proc-transfer", "unable to find provider for provider-target-type="+paytoTargetType)
LogError("proc-transfer", err)
transferFailed(transfer, errs)
errs <- err