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
parent 5b7e587c8b
commit 83a7710e62
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") config.Logger.Infof("Route propagating, it may take up to 1 minute for your new route to become functional")
return nil return nil
} }