When tools like kubernetes and cockpit are talking to the docker daemon
actively, we are seeing large number of log messages that look like debug
information.
For example
docker info adds the following line to journald.
Nov 26 07:09:23 dhcp-10-19-62-196.boston.devel.redhat.com docker[32686]: time="2015-11-26T07:09:23.124503455-05:00" level=info msg="GET /v1.22/info"
We think this should be Debug level not Info level.
Signed-off-by: Dan Walsh <dwalsh@redhat.com>
| ... | ... |
@@ -25,7 +25,7 @@ type middleware func(handler httputils.APIFunc) httputils.APIFunc |
| 25 | 25 |
func (s *Server) loggingMiddleware(handler httputils.APIFunc) httputils.APIFunc {
|
| 26 | 26 |
return func(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
|
| 27 | 27 |
if s.cfg.Logging {
|
| 28 |
- logrus.Infof("%s %s", r.Method, r.RequestURI)
|
|
| 28 |
+ logrus.Debugf("%s %s", r.Method, r.RequestURI)
|
|
| 29 | 29 |
} |
| 30 | 30 |
return handler(ctx, w, r, vars) |
| 31 | 31 |
} |