TUN-985: Don't display tunnel ID if it's empty string

This commit is contained in:
Adam Chalmers 2018-09-12 12:01:16 -05:00 committed by Areg Harutyunyan
parent e2194f9417
commit f0126d1af2
1 changed files with 3 additions and 1 deletions

View File

@ -339,7 +339,9 @@ func RegisterTunnel(ctx context.Context, muxer *h2mux.Muxer, config *TunnelConfi
}
}
config.Logger.Info("Tunnel ID: " + registration.TunnelID)
if registration.TunnelID != "" {
config.Logger.Info("Tunnel ID: " + registration.TunnelID)
}
config.Logger.Infof("Route propagating, it may take up to 1 minute for your new route to become functional")
return nil
}