修改默认客户端日志状态为关闭

This commit is contained in:
钱纯净
2024-11-04 23:34:44 +08:00
parent c12fca6405
commit 234fb6614a

View File

@@ -42,7 +42,7 @@ func Dial(addr string, op ...client.Option) (cli *Client, err error) {
} }
cli.Client, err = dial.TCP(addr, func(c *client.Client) { cli.Client, err = dial.TCP(addr, func(c *client.Client) {
c.Logger.Debug(true) //开启日志打印 c.Logger.Debug(false) //关闭日志打印
c.Logger.WithHEX() //以HEX显示 c.Logger.WithHEX() //以HEX显示
c.SetOption(op...) //自定义选项 c.SetOption(op...) //自定义选项
c.Event.OnReadFrom = protocol.ReadFrom //分包 c.Event.OnReadFrom = protocol.ReadFrom //分包