log output error

This commit is contained in:
zhengyu 2019-08-19 12:05:15 +08:00
parent 6f6261edc4
commit 366000b6b2

View File

@ -201,7 +201,7 @@ func (s *KCP) Dial(network, addr string) (net.Conn, error) {
// NOTE: kcp uses udp, we should dial remote server directly here // NOTE: kcp uses udp, we should dial remote server directly here
c, err := kcp.DialWithOptions(s.addr, s.block, s.dataShards, s.parityShards) c, err := kcp.DialWithOptions(s.addr, s.block, s.dataShards, s.parityShards)
if err != nil { if err != nil {
log.F("[tls] dial to %s error: %s", s.addr, err) log.F("[kcp] dial to %s error: %s", s.addr, err)
return nil, err return nil, err
} }