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

Commit31b55a0

Browse files
committed
fix: use zero'd logger for Dial when no logger is passed
1 parent923b4e9 commit31b55a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎wsnet/dial.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ func Dial(ctx context.Context, conn net.Conn, options *DialOptions) (*Dialer, er
8383
options=&DialOptions{}
8484
}
8585
ifoptions.Log==nil {
86-
log:=slog.Make(sloghuman.Sink(os.Stderr)).Leveled(slog.LevelInfo).Named("wsnet_dial")
87-
options.Log=&log
86+
options.Log=&slog.Logger{}
8887
}
8988
log:=*options.Log
9089
ifoptions.ICEServers==nil {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp