MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / logRollbackResult

Method logRollbackResult

transaction.go:2447–2456  ·  view source on GitHub ↗

logRollbackResult logs the outcome of a rollback operation

(batchID string, action string, err error)

Source from the content-addressed store, hash-verified

2445
2446// logRollbackResult logs the outcome of a rollback operation
2447func (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
2459func (l *LedgerForge) sendBulkTransactionWebhook(batchID, status, errorMsg string, transactionCount int) {

Callers 2

Calls 2

ErrorMethod · 0.45
InfoMethod · 0.45

Tested by 1