logRollbackResult logs the outcome of a rollback operation
(batchID string, action string, err error)
| 2445 | |
| 2446 | // logRollbackResult logs the outcome of a rollback operation |
| 2447 | func (l *LedgerForge) logRollbackResult(batchID string, action string, err error) { |
| 2448 | if err != nil { |
| 2449 | logrus.WithError(err).WithField("batch_id", batchID).Error("failed to rollback batch transactions") |
| 2450 | } else { |
| 2451 | logrus.WithFields(logrus.Fields{ |
| 2452 | "batch_id": batchID, |
| 2453 | "action": action, |
| 2454 | }).Info("successfully rolled back atomic batch") |
| 2455 | } |
| 2456 | } |
| 2457 | |
| 2458 | // sendBulkTransactionWebhook sends a webhook notification for a bulk transaction result |
| 2459 | func (l *LedgerForge) sendBulkTransactionWebhook(batchID, status, errorMsg string, transactionCount int) { |