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

Commit276d2a0

Browse files
authored
chore: consistent empty loggers (#431)
1 parent795a283 commit276d2a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎wsnet/dial.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ func Dial(ctx context.Context, conn net.Conn, options *DialOptions) (*Dialer, er
8181
options=&DialOptions{}
8282
}
8383
ifoptions.Log==nil {
84-
options.Log=&slog.Logger{}
84+
// This logger will log nothing.
85+
log:=slog.Make()
86+
options.Log=&log
8587
}
8688
log:=*options.Log
8789
ifoptions.ICEServers==nil {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp