mirror of
https://github.com/coder/coder.git
synced 2026-10-29 17:44:33 +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:
@@ -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()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user