Commit 84ec13ca by Iwasaki Yudai

Do not show ws log

1 parent af411114
Showing with 2 additions and 2 deletions
...@@ -182,14 +182,14 @@ func (server *Server) setupHandlers(ctx context.Context, cancel context.CancelFu ...@@ -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) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!