mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-11 00:31:40 +08:00
修改日志写入文件内
This commit is contained in:
@@ -3,7 +3,6 @@ package sessdata
|
||||
import (
|
||||
"crypto/md5"
|
||||
"fmt"
|
||||
"log"
|
||||
"math/rand"
|
||||
"net"
|
||||
"strconv"
|
||||
@@ -191,7 +190,7 @@ func (s *Session) NewConn() *ConnSession {
|
||||
|
||||
func (cs *ConnSession) Close() {
|
||||
cs.closeOnce.Do(func() {
|
||||
log.Println("closeOnce:", cs.IpAddr)
|
||||
base.Info("closeOnce:", cs.IpAddr)
|
||||
cs.Sess.mux.Lock()
|
||||
defer cs.Sess.mux.Unlock()
|
||||
|
||||
|
Reference in New Issue
Block a user