diff --git a/modules/web/routing/logger.go b/modules/web/routing/logger.go index 6a4dae66f79..5f3a7592af0 100644 --- a/modules/web/routing/logger.go +++ b/modules/web/routing/logger.go @@ -89,13 +89,13 @@ func logPrinter(logger log.Logger) func(trigger Event, record *requestRecord) { if v, ok := record.responseWriter.(types.ResponseStatusProvider); ok { status = v.WrittenStatus() } - logf := log.Info + logf := logger.Info if strings.HasPrefix(req.RequestURI, "/assets/") { - logf = log.Trace + logf = logger.Trace } message := completedMessage if isUnknownHandler { - logf = log.Error + logf = logger.Error message = unknownHandlerMessage }