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:
2
go.mod
2
go.mod
@@ -1,5 +1,5 @@
|
||||
module github.com/taigrr/log-socket/v2
|
||||
|
||||
go 1.25.6
|
||||
go 1.26.0
|
||||
|
||||
require github.com/gorilla/websocket v1.5.3
|
||||
|
||||
@@ -137,6 +137,7 @@ func (h *Handler) clone() *Handler {
|
||||
}
|
||||
|
||||
func writeAttr(b *strings.Builder, groups []string, a slog.Attr) {
|
||||
a.Value = a.Value.Resolve()
|
||||
if a.Equal(slog.Attr{}) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user