extended logging

This commit is contained in:
Stephan D
2026-02-10 11:14:02 +01:00
parent 9463c7ce1f
commit 3578ddd54f
2 changed files with 5 additions and 1 deletions

View File

@@ -38,7 +38,9 @@ func toOpStatus(t *model.CardPayout) rail.OperationResult {
func (p *cardPayoutProcessor) updatePayoutStatus(ctx context.Context, state *model.CardPayout) error {
if err := p.store.Payouts().Upsert(ctx, state); err != nil {
p.logger.Warn("Failed to update transfer status", zap.String("transfer_ref", state.PayoutID), zap.String("status", string(state.Status)), zap.Error(err))
p.logger.Warn("Failed to update transfer status", zap.Error(err), mzap.ObjRef("payout_ref", state.ID),
zap.String("transfer_ref", state.PayoutID), zap.String("status", string(state.Status)),
)
}
if isFinalStatus(state) {
p.emitTransferStatusEvent(state)