summaryrefslogtreecommitdiff
path: root/internal/logging/logging.go
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2025-02-22 09:59:10 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2025-02-22 09:59:10 -0500
commitf36f77472a82d6ebfac153aed6d17f154ae239a6 (patch)
treed749ecc2ebf86a39b15ac3026d3e100d0276442b /internal/logging/logging.go
parent2cb9e5fe823391c09a99424138192d0fbec727af (diff)
Good foundations
Diffstat (limited to 'internal/logging/logging.go')
-rw-r--r--internal/logging/logging.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/logging/logging.go b/internal/logging/logging.go
index 91a9734..53155a3 100644
--- a/internal/logging/logging.go
+++ b/internal/logging/logging.go
@@ -43,6 +43,7 @@ func Setup(lvlStr, fmtStr, outStr string) error {
)
h = withTrackedContext(h, util.ReqIDKey, "request_id")
+ h = withTrackedContext(h, util.ProtoMethodKey, "proto_method")
h = withStackTrace(h)
slog.SetDefault(slog.New(h))
return errors.Join(outputErr, formatErr, levelErr)