Skip to content

Commit

Permalink
update commentary for chi middleware
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Okhlopkov <[email protected]>
  • Loading branch information
Pavel Okhlopkov committed Nov 5, 2024
1 parent 2db6c5a commit 631a27b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/utils/structured-logger/structured_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}
Expand Down

0 comments on commit 631a27b

Please sign in to comment.