fix: hide a fmt.Println behind verbose flag (#538)

Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
Lance Ball 2021-09-19 19:00:34 -04:00 committed by GitHub
parent a167b89d5a
commit ad4607bd50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -92,7 +92,9 @@ func (d *Deployer) Deploy(ctx context.Context, f fn.Function) (result fn.Deploym
return fn.DeploymentResult{}, err
}
fmt.Println("Function deployed at URL: " + route.Status.URL.String())
if d.Verbose {
fmt.Println("Function deployed at URL: " + route.Status.URL.String())
}
return fn.DeploymentResult{
Status: fn.Deployed,
URL: route.Status.URL.String(),