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

Commit 276d2a0

Browse files
authored
chore: consistent empty loggers (#431)
1 parent 795a283 commit 276d2a0

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

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