From f3cd192d09d9ef202df20bd5319e8412c72f730a Mon Sep 17 00:00:00 2001 From: ekexium Date: Fri, 19 Sep 2025 15:22:20 +0800 Subject: [PATCH] logs: downgrade some logs from ERROR to WARN and INFO (#1729) ref pingcap/tidb#62704 Signed-off-by: ekexium --- txnkv/transaction/2pc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/txnkv/transaction/2pc.go b/txnkv/transaction/2pc.go index 7f446f73..7aea614b 100644 --- a/txnkv/transaction/2pc.go +++ b/txnkv/transaction/2pc.go @@ -1817,7 +1817,7 @@ func (c *twoPhaseCommitter) execute(ctx context.Context) (err error) { // RPCs fails. However, if there are multiple errors and some of the errors // are not RPC failures, we can return the actual error instead of undetermined. if undeterminedErr := c.getUndeterminedErr(); undeterminedErr != nil { - logutil.Logger(ctx).Error("Async commit/1PC result undetermined", + logutil.Logger(ctx).Warn("Async commit/1PC result undetermined", zap.Error(err), zap.NamedError("rpcErr", undeterminedErr), zap.Uint64("txnStartTS", c.startTS)) @@ -2008,7 +2008,7 @@ func (c *twoPhaseCommitter) commitTxn(ctx context.Context, commitDetail *util.Co } if err != nil { if undeterminedErr := c.getUndeterminedErr(); undeterminedErr != nil { - logutil.Logger(ctx).Error("2PC commit result undetermined", + logutil.Logger(ctx).Warn("2PC commit result undetermined", zap.Error(err), zap.NamedError("rpcErr", undeterminedErr), zap.Uint64("txnStartTS", c.startTS))