Do not show ws log

This commit is contained in:
Iwasaki Yudai 2017-08-13 14:00:51 +09:00
parent af41111458
commit 84ec13ca19
1 changed files with 2 additions and 2 deletions

View File

@ -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) {