Do not show ws log
This commit is contained in:
parent
af41111458
commit
84ec13ca19
|
@ -182,14 +182,14 @@ func (server *Server) setupHandlers(ctx context.Context, cancel context.CancelFu
|
||||||
siteHandler = server.wrapBasicAuth(siteHandler, server.options.Credential)
|
siteHandler = server.wrapBasicAuth(siteHandler, server.options.Credential)
|
||||||
}
|
}
|
||||||
|
|
||||||
siteHandler = server.wrapHeaders(siteHandler)
|
siteHandler = server.wrapLogger(server.wrapHeaders(siteHandler))
|
||||||
|
|
||||||
wsMux := http.NewServeMux()
|
wsMux := http.NewServeMux()
|
||||||
wsMux.Handle("/", siteHandler)
|
wsMux.Handle("/", siteHandler)
|
||||||
wsMux.HandleFunc(url.Path+"ws", server.generateHandleWS(ctx, cancel, counter))
|
wsMux.HandleFunc(url.Path+"ws", server.generateHandleWS(ctx, cancel, counter))
|
||||||
siteHandler = http.Handler(wsMux)
|
siteHandler = http.Handler(wsMux)
|
||||||
|
|
||||||
return server.wrapLogger(siteHandler)
|
return siteHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
func (server *Server) setupHTTPServer(handler http.Handler, url *url.URL) (*http.Server, error) {
|
func (server *Server) setupHTTPServer(handler http.Handler, url *url.URL) (*http.Server, error) {
|
||||||
|
|
Loading…
Reference in New Issue