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:
Mathias Fredriksson
2023-06-13 18:17:04 +00:00
committed by GitHub
parent 74fdcb1ace
commit c12c9f1f4e
6 changed files with 12 additions and 121 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ func (b slogBackend) Export(ctx context.Context, alog database.AuditLog) error {
// pleasantly format the output. For example, the clean result of
// (*NullString).Value() may be printed instead of {String: "foo", Valid: true}.
sfs := structs.Fields(alog)
var fields []slog.Field
var fields []any
for _, sf := range sfs {
fields = append(fields, slog.F(sf.Name(), sf.Value()))
}