Skip to content

Commit

Permalink
Don't pass in logFields again (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
nchengyeeshen authored Jan 9, 2023
1 parent 528cd32 commit df664f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _examples/logging/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (l *StructuredLogger) NewLogEntry(r *http.Request) middleware.LogEntry {

entry := StructuredLoggerEntry{Logger: slog.New(handler)}

entry.Logger.LogAttrs(slog.LevelInfo, "request started", logFields...)
entry.Logger.LogAttrs(slog.LevelInfo, "request started")

return &entry
}
Expand Down

0 comments on commit df664f1

Please sign in to comment.