Skip to content

Commit f87dde5

Browse files
committed
update: forgot skip field for caller
1 parent 13ab6ab commit f87dde5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

middleware.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func RequestLogging(config *Config) func(http.Handler) http.Handler {
3737
Severity: config.Severity,
3838
AdditionalData: config.AdditionalData,
3939
loggedSeverity: make([]Severity, 0, 10),
40+
Skip: config.Skip,
4041
}
4142
ctx := context.WithValue(r.Context(), contextLoggerKey, contextLogger)
4243
r = r.WithContext(ctx)
@@ -123,6 +124,7 @@ func SetContext(config *Config, w http.ResponseWriter, r *http.Request) *http.Re
123124
Severity: config.Severity,
124125
AdditionalData: config.AdditionalData,
125126
loggedSeverity: make([]Severity, 0, 10),
127+
Skip: config.Skip,
126128
}
127129
ctx := context.WithValue(r.Context(), contextLoggerKey, contextLogger)
128130
r = r.WithContext(ctx)

0 commit comments

Comments
 (0)