refactor: 移除冗余日志输出并优化日志处理
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-02-02 18:32:41 +08:00
parent acc9bcf6ff
commit cdb7cec4ad
17 changed files with 59 additions and 100 deletions

View File

@@ -2,11 +2,9 @@ package socket
import (
"blazing/common/socket/errorcode"
"blazing/cool"
"blazing/logic/service/common"
"blazing/logic/service/player"
"blazing/modules/base/service"
"context"
"fmt"
"time"
)
@@ -16,7 +14,6 @@ type Broadcast struct {
}
func (s *Server) Broadcast(t string) int {
cool.Logger.Info(context.TODO(), "全服广播", t)
player.Mainplayer.Range(func(key uint32, value *player.Player) bool {
@@ -32,7 +29,7 @@ func (s *Server) Broadcast(t string) int {
const kickTimeout = 5 * time.Second
func (s *Server) KickPerson(a int) error {
cool.Logger.Info(context.TODO(), "检测到踢人请求", a)
if a == 0 {
return nil
}