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

Commit 31b55a0

Browse files
committed
fix: use zero'd logger for Dial when no logger is passed
1 parent 923b4e9 commit 31b55a0

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
if options.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
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