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

Commit f7981dc

Browse files
committed
chore: consistent empty loggers
1 parent 795a283 commit f7981dc

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)