This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-seata-go.git


The following commit(s) were added to refs/heads/master by this push:
     new a1c37641 refactor(gin): improve log message (#901)
a1c37641 is described below

commit a1c37641f95f42572c4a300c83f6ca64d4e269c9
Author: ian <[email protected]>
AuthorDate: Sun Sep 28 15:09:58 2025 +0800

    refactor(gin): improve log message (#901)
    
    * refactor(gin): simplify xid check and improve error message
    
    * imporve log
    
    * adjust the code
    
    * update
---
 pkg/integration/gin/gin_transaction_middleware.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/integration/gin/gin_transaction_middleware.go 
b/pkg/integration/gin/gin_transaction_middleware.go
index 8e7df882..aa142535 100644
--- a/pkg/integration/gin/gin_transaction_middleware.go
+++ b/pkg/integration/gin/gin_transaction_middleware.go
@@ -37,7 +37,7 @@ func TransactionMiddleware() gin.HandlerFunc {
                }
 
                if len(xid) == 0 {
-                       log.Errorf("Gin: header not contain header: %s, global 
transaction xid", constant.XidKey)
+                       log.Errorf("Gin: header does not contain: %s or %s, 
global transaction xid is missing", constant.XidKey, constant.XidKeyLowercase)
                        ctx.AbortWithStatus(http.StatusBadRequest)
                        return
                }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to