This commit is contained in:
liuchangshun 2023-12-01 14:40:53 +08:00
parent e287fddc48
commit a46befd1d1

View File

@ -143,5 +143,5 @@ func GinRecovery(stack bool) gin.HandlerFunc {
func Log(msg string, c *gin.Context) {
v, _ := c.Get("X-Span-ID")
spanId := fmt.Sprintf("%v", v)
zap.L().Info("spanId:" + spanId + "log:" + msg)
zap.L().Info(`spanId:"` + spanId + `"log:` + msg)
}