Fix logging method (#1375)
This commit is contained in:
Родитель
c7e2c00ed1
Коммит
71260d2171
|
@ -632,7 +632,7 @@ func (cc *ClientConn) resetAddrConn(addr Address, block bool, tearDownErr error)
|
||||||
// Start a goroutine connecting to the server asynchronously.
|
// Start a goroutine connecting to the server asynchronously.
|
||||||
go func() {
|
go func() {
|
||||||
if err := ac.resetTransport(false); err != nil {
|
if err := ac.resetTransport(false); err != nil {
|
||||||
grpclog.Warningln("Failed to dial %s: %v; please retry.", ac.addr.Addr, err)
|
grpclog.Warningf("Failed to dial %s: %v; please retry.", ac.addr.Addr, err)
|
||||||
if err != errConnClosing {
|
if err != errConnClosing {
|
||||||
// Keep this ac in cc.conns, to get the reason it's torn down.
|
// Keep this ac in cc.conns, to get the reason it's torn down.
|
||||||
ac.tearDown(err)
|
ac.tearDown(err)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче