frontend: remove sessionid from log
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
b7404e3500
commit
2dcd7b6221
1 changed files with 0 additions and 3 deletions
|
@ -45,9 +45,6 @@ func (lh *logHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
"http.req.path": r.URL.Path,
|
"http.req.path": r.URL.Path,
|
||||||
"http.req.method": r.Method,
|
"http.req.method": r.Method,
|
||||||
})
|
})
|
||||||
if v, ok := r.Context().Value(ctxKeySessionID{}).(string); ok {
|
|
||||||
log = log.WithField("session_id", v)
|
|
||||||
}
|
|
||||||
log.Debug("request started")
|
log.Debug("request started")
|
||||||
defer func() {
|
defer func() {
|
||||||
log.WithFields(logrus.Fields{
|
log.WithFields(logrus.Fields{
|
||||||
|
|
Loading…
Reference in a new issue