Skip to content

Commit 200a8e2

Browse files
Providing chisel's client with a logger level (#281)
Co-authored-by: Barak Sharoni <[email protected]> Co-authored-by: barak-sharoni-velocity <[email protected]>
1 parent 4f58a39 commit 200a8e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type Config struct {
4242
Headers http.Header
4343
TLS TLSConfig
4444
DialContext func(ctx context.Context, network, addr string) (net.Conn, error)
45+
Verbose bool
4546
}
4647

4748
//TLSConfig for a Client
@@ -104,7 +105,7 @@ func NewClient(c *Config) (*Client, error) {
104105
tlsConfig: nil,
105106
}
106107
//set default log level
107-
client.Logger.Info = true
108+
client.Logger.Info = c.Verbose
108109
//configure tls
109110
if u.Scheme == "wss" {
110111
tc := &tls.Config{}

0 commit comments

Comments
 (0)