From 84ec13ca191deca77b0e24b9f30eb956b6765fa0 Mon Sep 17 00:00:00 2001 From: Iwasaki Yudai Date: Sun, 13 Aug 2017 14:00:51 +0900 Subject: [PATCH] Do not show ws log --- server/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server.go b/server/server.go index 2516279..cc1cb4b 100644 --- a/server/server.go +++ b/server/server.go @@ -182,14 +182,14 @@ func (server *Server) setupHandlers(ctx context.Context, cancel context.CancelFu siteHandler = server.wrapBasicAuth(siteHandler, server.options.Credential) } - siteHandler = server.wrapHeaders(siteHandler) + siteHandler = server.wrapLogger(server.wrapHeaders(siteHandler)) wsMux := http.NewServeMux() wsMux.Handle("/", siteHandler) wsMux.HandleFunc(url.Path+"ws", server.generateHandleWS(ctx, cancel, counter)) siteHandler = http.Handler(wsMux) - return server.wrapLogger(siteHandler) + return siteHandler } func (server *Server) setupHTTPServer(handler http.Handler, url *url.URL) (*http.Server, error) {