Browse Source

update

pull/320/head
fatedier 8 years ago
parent
commit
a5f06489cb
  1. 1
      client/proxy.go
  2. 4
      utils/log/log.go
  3. 0
      utils/pool/buf.go
  4. 0
      utils/pool/buf_test.go

1
client/proxy.go

@ -228,6 +228,7 @@ func (pxy *UdpProxy) InWorkConn(conn frpNet.Conn) {
sendCh <- &msg.Ping{}
}); errRet != nil {
pxy.Trace("heartbeat goroutine for udp work connection closed")
break
}
}
}

4
utils/log/log.go

@ -23,7 +23,7 @@ import (
var Log *logs.BeeLogger
func init() {
Log = logs.NewLogger(100)
Log = logs.NewLogger(200)
Log.EnableFuncCallDepth(true)
Log.SetLogFuncCallDepth(Log.GetLogFuncCallDepth() + 1)
}
@ -43,7 +43,7 @@ func SetLogFile(logWay string, logFile string, maxdays int64) {
}
}
// value: error, warning, info, debug
// value: error, warning, info, debug, trace
func SetLogLevel(logLevel string) {
level := 4 // warning
switch logLevel {

0
utils/pool/pool.go → utils/pool/buf.go

0
utils/pool/pool_test.go → utils/pool/buf_test.go

Loading…
Cancel
Save