chore: bump deps

This commit is contained in:
2025-08-12 07:04:57 +02:00
committed by decentral1se
parent 157d131b37
commit 56a68dfa91
981 changed files with 36486 additions and 39650 deletions

View File

@ -1,17 +1,6 @@
version: "2"
run:
tests: false
issues:
include:
- EXC0001
- EXC0005
- EXC0011
- EXC0012
- EXC0013
max-issues-per-linter: 0
max-same-issues: 0
linters:
enable:
- bodyclose
@ -19,8 +8,6 @@ linters:
- goconst
- godot
- godox
- gofumpt
- goimports
- gomoddirectives
- goprintffuncname
- gosec
@ -39,3 +26,16 @@ linters:
- unparam
- whitespace
- wrapcheck
exclusions:
generated: lax
presets:
- common-false-positives
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofumpt
- goimports
exclusions:
generated: lax

View File

@ -88,7 +88,13 @@ func (l *Logger) writeSlogValue(jw *jsonWriter, v slogValue) {
}
jw.end()
default:
jw.objectValue(v.Any())
a := v.Any()
_, jm := a.(json.Marshaler)
if err, ok := a.(error); ok && !jm {
jw.objectValue(err.Error())
} else {
jw.objectValue(a)
}
}
}

View File

@ -17,6 +17,8 @@ type (
slogLogValuer = slog.LogValuer
)
var slogAnyValue = slog.AnyValue
const slogKindGroup = slog.KindGroup
// Enabled reports whether the logger is enabled for the given level.

View File

@ -18,6 +18,8 @@ type (
slogLogValuer = slog.LogValuer
)
var slogAnyValue = slog.AnyValue
const slogKindGroup = slog.KindGroup
// Enabled reports whether the logger is enabled for the given level.