From 17fdf1b7ac641b09479312e91c854942b968d678 Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Fri, 7 Apr 2023 11:33:09 +0800 Subject: [PATCH] log tag change --- game/gateway.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/gateway.go b/game/gateway.go index 1e03099..269cec1 100644 --- a/game/gateway.go +++ b/game/gateway.go @@ -46,7 +46,7 @@ func (slf *gateway) run(stateMachine *StateMachine, appName string, port int, on ip := context.GetHeader("X-Real-IP") ws, err := upgrade.Upgrade(context.Writer, context.Request, nil) if err != nil { - log.Error("Websocket Upgrade error", zap.Error(err)) + log.Error("Gateway", zap.Error(err)) return } if len(ip) == 0 { @@ -57,14 +57,14 @@ func (slf *gateway) run(stateMachine *StateMachine, appName string, port int, on } conn := onCreateConnHandleFunc() if err := context.ShouldBind(conn); err != nil { - log.Error("ServeWebSocket", zap.Error(err)) + log.Error("Gateway", zap.Error(err)) context.AbortWithStatus(http.StatusBadRequest) return } playerGuid, err := stateMachine.sonyflake.NextID() if err != nil { - log.Error("GuidGenerateFailed", zap.Error(err)) + log.Error("Gateway", zap.Error(err)) context.AbortWithStatus(http.StatusBadRequest) return }