[cleanup] prefer t.Logf over log.Printf in test (#792)

This commit is contained in:
Julio López authored and GitHub committed 2021-01-21 23:01:12 -08:00
1 parent 8d907c937c
commit 6b245f972c
1 file changed
+1 -2
+1 -2
View File
@@ -5,7 +5,6 @@ import (
"crypto/rand"
"crypto/sha1"
"fmt"
"log"
"net"
"net/http"
"os"
@@ -362,7 +361,7 @@ func createMinioSessionToken(t *testutil.RetriableT, kopiaUserName, kopiaUserPas
t.Fatalf("couldn't find aws creds in aws assume role response")
}
log.Printf("created session token with assume role: expiration: %s", result.Credentials.Expiration)
t.Logf("created session token with assume role: expiration: %s", result.Credentials.Expiration)
return *result.Credentials.AccessKeyId, *result.Credentials.SecretAccessKey, *result.Credentials.SessionToken
}