Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
Signed-off-by: John Hosie <[email protected]>
  • Loading branch information
hosie committed Nov 10, 2024
1 parent d3c5b2c commit 0d1f556
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions core/go/internal/privatetxnmgr/transaction_flow_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,8 @@ func (tf *transactionFlow) finalize(ctx context.Context) {

func (tf *transactionFlow) delegateIfRequired(ctx context.Context) (doContinue bool) {

tf.logActionInfof(ctx, "Transaction is delegating since %s", tf.delegateRequestTime)

if tf.delegatePending {
tf.logActionInfof(ctx, "Transaction is delegating since %s", tf.delegateRequestTime)
if tf.clock.Now().Before(tf.delegateRequestTime.Add(tf.requestTimeout)) {
tf.logActionDebug(ctx, "Delegation request not timed out")
return false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (tf *transactionFlow) applyTransactionFinalizeError(ctx context.Context, ev
}

func (tf *transactionFlow) applyTransactionNudgeEvent(ctx context.Context, event *ptmgrtypes.TransactionNudgeEvent) {
log.L(ctx).Errorf("applyTransactionNudgeEvent transaction %s", tf.transaction.ID)
log.L(ctx).Warnf("applyTransactionNudgeEvent transaction %s", tf.transaction.ID)
tf.latestEvent = "TransactionNudgeEvent"

//nothing really changes here, we just trigger a re-evaluation of the transaction state and next actions
Expand Down

0 comments on commit 0d1f556

Please sign in to comment.