ing
This commit is contained in:
parent
f7435b7fa0
commit
089d12de4f
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user