Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit cb58b46

Browse files
committed
chore: consistent empty loggers
1 parent 795a283 commit cb58b46

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

wsnet/dial.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ import (
1616
"golang.org/x/net/proxy"
1717
"nhooyr.io/websocket"
1818

19-
"cdr.dev/slog"
20-
2119
"cdr.dev/coder-cli/coder-sdk"
20+
"cdr.dev/slog"
2221
)
2322

2423
// DialOptions are configurable options for a wsnet connection.
@@ -81,7 +80,9 @@ func Dial(ctx context.Context, conn net.Conn, options *DialOptions) (*Dialer, er
8180
options = &DialOptions{}
8281
}
8382
if options.Log == nil {
84-
options.Log = &slog.Logger{}
83+
// This logger will log nothing.
84+
log := slog.Make()
85+
options.Log = &log
8586
}
8687
log := *options.Log
8788
if options.ICEServers == nil {

0 commit comments

Comments
 (0)