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

Commit 7443718

Browse files
coadlerdeansheather
authored andcommitted
chore: consistent empty loggers (#431)
(cherry picked from commit 276d2a0) (cherry picked from commit e890e8f)
1 parent c8ad97e commit 7443718

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
)
@@ -82,7 +80,8 @@ func Dial(ctx context.Context, conn net.Conn, options *DialOptions) (*Dialer, er
8280
options = &DialOptions{}
8381
}
8482
if options.Log == nil {
85-
log := slog.Make(sloghuman.Sink(os.Stderr)).Leveled(slog.LevelInfo).Named("wsnet_dial")
83+
// This logger will log nothing.
84+
log := slog.Make()
8685
options.Log = &log
8786
}
8887
log := *options.Log

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy