Skip to content

Commit e0e333d

Browse files
authored
chore: update to slog v3 (#31)
1 parent ade90df commit e0e333d

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

cmd/tunnel/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"github.com/urfave/cli/v2"
1515
"golang.org/x/xerrors"
1616

17-
"cdr.dev/slog"
18-
"cdr.dev/slog/sloggers/sloghuman"
17+
"cdr.dev/slog/v3"
18+
"cdr.dev/slog/v3/sloggers/sloghuman"
1919
"github.com/coder/wgtunnel/buildinfo"
2020
"github.com/coder/wgtunnel/tunnelsdk"
2121
)

cmd/tunneld/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"golang.org/x/sync/errgroup"
2222
"golang.org/x/xerrors"
2323

24-
"cdr.dev/slog"
25-
"cdr.dev/slog/sloggers/sloghuman"
24+
"cdr.dev/slog/v3"
25+
"cdr.dev/slog/v3/sloggers/sloghuman"
2626
"github.com/coder/wgtunnel/buildinfo"
2727
"github.com/coder/wgtunnel/tunneld"
2828
"github.com/coder/wgtunnel/tunnelsdk"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.20
55
replace github.com/tailscale/wireguard-go => github.com/coder/wireguard-go v0.0.0-20240502122727-a4cb23ac736d
66

77
require (
8-
cdr.dev/slog v1.6.2-0.20230901043036-3e17d6de9749
8+
cdr.dev/slog/v3 v3.0.0-rc1
99
github.com/go-chi/chi/v5 v5.0.10
1010
github.com/go-chi/hostrouter v0.2.0
1111
github.com/go-chi/httprate v0.7.4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
cdr.dev/slog v1.6.2-0.20230901043036-3e17d6de9749 h1:KGTttdvivQTsOJMbkjAHD8QhERoje0egSZn7hLvHdio=
2-
cdr.dev/slog v1.6.2-0.20230901043036-3e17d6de9749/go.mod h1:NaoTA7KwopCrnaSb0JXTC0PTp/O/Y83Lndnq0OEV3ZQ=
1+
cdr.dev/slog/v3 v3.0.0-rc1 h1:EN7Zim6GvTpAeHQjI0ERDEfqKbTyXRvgH4UhlzLpvWM=
2+
cdr.dev/slog/v3 v3.0.0-rc1/go.mod h1:iO/OALX1VxlI03mkodCGdVP7pXzd2bRMvu3ePvlJ9ak=
33
cloud.google.com/go/compute v1.23.0 h1:tP41Zoavr8ptEqaW6j+LQOnyBBhO7OkOMAGrgLopTwY=
44
cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=
55
cloud.google.com/go/logging v1.8.1 h1:26skQWPeYhvIasWKm48+Eq7oUqdcdbwsCVwz5Ys0FvU=

tunneld/httpmw/ratelimit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/go-chi/httprate"
1212

13-
"cdr.dev/slog"
13+
"cdr.dev/slog/v3"
1414
"github.com/coder/wgtunnel/tunneld/httpapi"
1515
"github.com/coder/wgtunnel/tunnelsdk"
1616
)

tunneld/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/tailscale/wireguard-go/device"
1515
"golang.org/x/xerrors"
1616

17-
"cdr.dev/slog"
17+
"cdr.dev/slog/v3"
1818
"github.com/coder/wgtunnel/tunnelsdk"
1919
)
2020

tunneld/tunneld_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"github.com/stretchr/testify/assert"
2020
"github.com/stretchr/testify/require"
2121

22-
"cdr.dev/slog/sloggers/slogtest"
22+
"cdr.dev/slog/v3/sloggers/slogtest"
2323
"github.com/coder/wgtunnel/tunneld"
2424
"github.com/coder/wgtunnel/tunnelsdk"
2525
)

tunnelsdk/tunnel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"golang.org/x/xerrors"
2020
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
2121

22-
"cdr.dev/slog"
22+
"cdr.dev/slog/v3"
2323
)
2424

2525
// TunnelPort is the port in the virtual wireguard network stack that the

0 commit comments

Comments
 (0)