Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Changed API logging to Debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
kjlyon committed Sep 7, 2016
1 parent f3cd21f commit 867cbcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mgmt/rest/log_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (l *Logger) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.Ha
"index": l.counter,
"method": r.Method,
"url": r.URL.Path,
}).Info("API request")
}).Debug("API request")
next(rw, r)
res := rw.(negroni.ResponseWriter)
restLogger.WithFields(log.Fields{
Expand All @@ -51,5 +51,5 @@ func (l *Logger) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.Ha
"url": r.URL.Path,
"status-code": res.Status(),
"status": http.StatusText(res.Status()),
}).Info("API response")
}).Debug("API response")
}

0 comments on commit 867cbcb

Please sign in to comment.