1
0
mirror of https://github.com/taigrr/log-socket synced 2026-03-20 16:02:28 -07:00

chore: update to Go 1.26, resolve slog LogValuer values

This commit is contained in:
2026-03-02 03:48:00 +00:00
parent 90471833d0
commit cac3d127ee
2 changed files with 2 additions and 1 deletions

2
go.mod
View File

@@ -1,5 +1,5 @@
module github.com/taigrr/log-socket/v2 module github.com/taigrr/log-socket/v2
go 1.25.6 go 1.26.0
require github.com/gorilla/websocket v1.5.3 require github.com/gorilla/websocket v1.5.3

View File

@@ -137,6 +137,7 @@ func (h *Handler) clone() *Handler {
} }
func writeAttr(b *strings.Builder, groups []string, a slog.Attr) { func writeAttr(b *strings.Builder, groups []string, a slog.Attr) {
a.Value = a.Value.Resolve()
if a.Equal(slog.Attr{}) { if a.Equal(slog.Attr{}) {
return return
} }