From b48d8c3d1922aecabd5228f13bfb2ffc5a619c97 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 26 Jul 2023 00:20:50 +0800 Subject: [PATCH] fix --- modules/web/routing/logger.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/web/routing/logger.go b/modules/web/routing/logger.go index 6a4dae66f793..5f3a7592af02 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 }