diff --git a/examples/zinx_logger/server.go b/examples/zinx_logger/server.go index cb4d3f34..99ff9a09 100644 --- a/examples/zinx_logger/server.go +++ b/examples/zinx_logger/server.go @@ -3,7 +3,6 @@ package main import ( "fmt" "github.com/aceld/zinx/ziface" - "github.com/aceld/zinx/zlog" "github.com/aceld/zinx/znet" "time" ) @@ -41,14 +40,9 @@ func (t *TestRouter) PostHandle(req ziface.IRequest) { } } -func onLog(a []byte) { - -} - func main() { s := znet.NewServer() s.AddRouter(1, &TestRouter{}) - zlog.SetLogger(new(MyLogger)) - zlog.StdZinxLog.SetOnLogListen(&onLog) + //zlog.SetLogger(new(MyLogger)) s.Serve() } diff --git a/znet/server.go b/znet/server.go index 9afcd8b3..25473fe3 100644 --- a/znet/server.go +++ b/znet/server.go @@ -16,7 +16,6 @@ import ( "github.com/aceld/zinx/zconf" "github.com/aceld/zinx/zdecoder" "github.com/aceld/zinx/zlog" - "github.com/aceld/zinx/zmetrics" "github.com/gorilla/websocket" "github.com/aceld/zinx/ziface"