mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-11 23:26:35 +00:00
Fix log message (#591)
printing `seconds` is superfluous since time.Duration already adds the `s` suffix Invalid log message would be ``` Retrying connection in up to 1s seconds ``` Co-authored-by: João Oliveirinha <joliveirinha@cloudflare.com>
This commit is contained in:
parent
2aca844570
commit
872cb003a4
@ -254,8 +254,9 @@ func (e *EdgeTunnelServer) Serve(ctx context.Context, connIndex uint8, protocolF
|
|||||||
if !ok {
|
if !ok {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
e.config.Observer.SendReconnect(connIndex)
|
e.config.Observer.SendReconnect(connIndex)
|
||||||
connLog.Logger().Info().Msgf("Retrying connection in up to %s seconds", duration)
|
connLog.Logger().Info().Msgf("Retrying connection in up to %s", duration)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if the connection error was from an IP issue with the host or
|
// Check if the connection error was from an IP issue with the host or
|
||||||
|
Loading…
Reference in New Issue
Block a user