From 631a27b33091bcc86deb2be7150518d1a3635c57 Mon Sep 17 00:00:00 2001 From: Pavel Okhlopkov Date: Tue, 5 Nov 2024 10:24:09 +0300 Subject: [PATCH] update commentary for chi middleware Signed-off-by: Pavel Okhlopkov --- pkg/utils/structured-logger/structured_logger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/utils/structured-logger/structured_logger.go b/pkg/utils/structured-logger/structured_logger.go index 7744ba8b..10d4d490 100644 --- a/pkg/utils/structured-logger/structured_logger.go +++ b/pkg/utils/structured-logger/structured_logger.go @@ -11,7 +11,7 @@ import ( ) // StructuredLogger is a simple, but powerful implementation of a custom structured -// logger backed on logrus. It is adapted from https://github.com/go-chi/chi +// logger backed on slog. It is adapted from https://github.com/go-chi/chi // 'logging' example. func NewStructuredLogger(logger *log.Logger, componentLabel string) func(next http.Handler) http.Handler { @@ -35,7 +35,7 @@ func (l *StructuredLogger) NewLogEntry(r *http.Request) middleware.LogEntry { slog.String("http_method", r.Method), slog.String("uri", r.RequestURI), ) - // entry.Logger.Infoln("request started") + // entry.Logger.Info("request started") return entry }