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

Commite890e8f

Browse files
coadlerdeansheather
authored andcommitted
chore: consistent empty loggers (#431)
(cherry picked from commit276d2a0)
1 parent91f773c commite890e8f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎wsnet/dial.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"io"
99
"net"
1010
"net/url"
11-
"os"
1211
"sync"
1312
"time"
1413

@@ -18,7 +17,6 @@ import (
1817
"nhooyr.io/websocket"
1918

2019
"cdr.dev/slog"
21-
"cdr.dev/slog/sloggers/sloghuman"
2220

2321
"cdr.dev/coder-cli/coder-sdk"
2422
)
@@ -83,7 +81,8 @@ func Dial(ctx context.Context, conn net.Conn, options *DialOptions) (*Dialer, er
8381
options=&DialOptions{}
8482
}
8583
ifoptions.Log==nil {
86-
log:=slog.Make(sloghuman.Sink(os.Stderr)).Leveled(slog.LevelInfo).Named("wsnet_dial")
84+
// This logger will log nothing.
85+
log:=slog.Make()
8786
options.Log=&log
8887
}
8988
log:=*options.Log

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp