From 2a1978f10b7dff4f239eb868648f404f070fccc3 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Wed, 7 Dec 2016 11:43:27 -0500 Subject: [PATCH] 8460: Tweak logging keys, more similar to keepstore. --- services/ws/router.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/ws/router.go b/services/ws/router.go index 974459f760..0ad8d7c088 100644 --- a/services/ws/router.go +++ b/services/ws/router.go @@ -75,8 +75,8 @@ func (rtr *router) makeServer(newSession sessionFactory) *websocket.Server { }) log.WithFields(logrus.Fields{ - "Elapsed": time.Now().Sub(t0).Seconds(), - "Stats": stats, + "elapsed": time.Now().Sub(t0).Seconds(), + "stats": stats, }).Info("disconnect") ws.Close() }), @@ -121,8 +121,8 @@ func (rtr *router) ServeHTTP(resp http.ResponseWriter, req *http.Request) { ctx := contextWithLogger(req.Context(), logger) req = req.WithContext(ctx) logger.WithFields(logrus.Fields{ - "RemoteAddr": req.RemoteAddr, - "X-Forwarded-For": req.Header.Get("X-Forwarded-For"), + "remoteAddr": req.RemoteAddr, + "reqForwardedFor": req.Header.Get("X-Forwarded-For"), }).Info("accept request") rtr.mux.ServeHTTP(resp, req) } -- 2.30.2