From 2c6a40c611f702a2c7909396aedd3d8fdd3f4039 Mon Sep 17 00:00:00 2001 From: Alvaro Aleman Date: Wed, 9 Mar 2022 12:19:41 -0500 Subject: [PATCH] Azure: Fix credentials log It uses fmt.Printf rather than the normal logger, has a typo and misses a trailing newline, resulting in a logline that looks something like this: ``` Using credentilas: /home/alvaro/.azure/osServicePrincipal.json2022-03-09T11:52:34-05:00 INFO Successfuly created resourceGroup {"name": "alvaro-test-alvaro-test-rsdlw"} ``` Fix that. --- cmd/infra/azure/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/infra/azure/create.go b/cmd/infra/azure/create.go index 187f28ba1a..3e373b35b4 100644 --- a/cmd/infra/azure/create.go +++ b/cmd/infra/azure/create.go @@ -120,7 +120,7 @@ func (o *CreateInfraOptions) Run(ctx context.Context) (*CreateInfraOutput, error if err != nil { return nil, fmt.Errorf("failed to read the credentials: %w", err) } - fmt.Printf("Using credentilas: %s", o.CredentialsFile) + log.Log.Info("Using credentials from file", "path", o.CredentialsFile) } authorizer, err := auth.ClientCredentialsConfig{