We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8cbae8 commit 466573fCopy full SHA for 466573f
template/golang-middleware-inproc/function/handler.go
@@ -13,8 +13,8 @@ import (
13
func Handle(w http.ResponseWriter, r *http.Request) {
14
var input []byte
15
16
- log := slog.New(slog.NewTextHandler(os.Stdout, opts))
17
- log = log.With("X-Call-Id", r.Header.Get("X-Call-Id"))
+ log := slog.New(slog.NewTextHandler(os.Stdout, nil)).
+ With("X-Call-Id", r.Header.Get("X-Call-Id"))
18
19
log.Info("received request")
20
0 commit comments