satellite/console/consoleweb: Log trace reqs with INFO

Change from DEBUG level to INFO level the logs that the trace request
middleware logs because it looks that we don't log in DEBUG level in
production Satellite API pods.

For making that assumption I searched in the last 7 days logs collected
by Google Logging service for all the Satellite API pods in US1 and it
didn't show any line.

Change-Id: I620009d70d59df46d524c8cee93851bd13eceeee
This commit is contained in:
Ivan Fraixedes 2022-08-04 20:00:44 +02:00 committed by Storj Robot
parent eca1689f17
commit b398035053

View File

@ -987,7 +987,7 @@ func (w *responseWriterStatusCode) WriteHeader(code int) {
// newTraceRequestMiddleware returns middleware for tracing each request to a
// registered endpoint through Monkit.
//
// It also log in DEBUG level each request.
// It also log in INFO level each request.
func newTraceRequestMiddleware(log *zap.Logger, root *mux.Router) mux.MiddlewareFunc {
log = log.Named("trace-request-middleware")
@ -1013,7 +1013,7 @@ func newTraceRequestMiddleware(log *zap.Logger, root *mux.Router) mux.Middleware
fields = append(fields, zap.Int64("trace-id", span.Trace().Id()))
}
log.Debug("client HTTP request", fields...)
log.Info("client HTTP request", fields...)
}()
match := mux.RouteMatch{}