mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore(go.mod): update cdr.dev/slog (#7994)
* chore(mod): update cdr.dev/slog * fix: change uses of []slog.Field to []any to match new API
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ func (api *API) logReportCSPViolations(rw http.ResponseWriter, r *http.Request)
|
||||
return
|
||||
}
|
||||
|
||||
fields := make([]slog.Field, 0, len(v.Report))
|
||||
fields := make([]any, 0, len(v.Report))
|
||||
for k, v := range v.Report {
|
||||
fields = append(fields, slog.F(k, v))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user