日志优化
This commit is contained in:
parent
95c4c4ee2e
commit
2341d2d144
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user