日志优化

This commit is contained in:
hahwu 2026-03-18 14:42:06 +08:00
parent 95c4c4ee2e
commit 2341d2d144

View File

@ -2,7 +2,6 @@ package network
import (
"net"
"server/conf"
"server/pkg/github.com/name5566/leaf/log"
"sync"
"time"
@ -84,9 +83,9 @@ func (server *TCPServer) run() {
return
}
tempDelay = 0
if conf.Server.ServerType == "center" {
log.Debug("accept connection from %v", conn.RemoteAddr())
}
// if conf.Server.ServerType == "center" {
// log.Debug("accept connection from %v", conn.RemoteAddr())
// }
server.mutexConns.Lock()
if len(server.conns) >= server.MaxConnNum {
server.mutexConns.Unlock()