From 2dcd7b6221cbac1c23550f71bb04324932771c42 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Mon, 2 Jul 2018 10:00:10 -0700 Subject: [PATCH] frontend: remove sessionid from log Signed-off-by: Ahmet Alp Balkan --- src/frontend/middleware.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/frontend/middleware.go b/src/frontend/middleware.go index 41d4f58..b8957e2 100644 --- a/src/frontend/middleware.go +++ b/src/frontend/middleware.go @@ -45,9 +45,6 @@ func (lh *logHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { "http.req.path": r.URL.Path, "http.req.method": r.Method, }) - if v, ok := r.Context().Value(ctxKeySessionID{}).(string); ok { - log = log.WithField("session_id", v) - } log.Debug("request started") defer func() { log.WithFields(logrus.Fields{