Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commitcb58b46

Browse files
committed
chore: consistent empty loggers
1 parent795a283 commitcb58b46

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
ifoptions.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
ifoptions.ICEServers==nil {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp