This commit is contained in:
crusader 2017-11-29 14:11:11 +09:00
parent f7435b7fa0
commit 089d12de4f

View File

@ -38,6 +38,10 @@ func (sh *ServerHandlers) Listen(serverCTX ServerContext) (net.Listener, error)
return nil, errors.New("Server: Handler method[Listen] of Server is not implement")
}
func (sh *ServerHandlers) OnStart(serverCTX ServerContext) {
// no op
}
func (sh *ServerHandlers) OnError(serverCTX ServerContext, conn net.Conn, status int, reason error) {
logging.Logger().Error(fmt.Sprintf("Server: error status: %d, reason: %v, [%v]", status, reason, conn))
}