diff --git a/sdk/azidentity/logging.go b/sdk/azidentity/logging.go index d1212086ef0a..d20180c19d75 100644 --- a/sdk/azidentity/logging.go +++ b/sdk/azidentity/logging.go @@ -22,6 +22,6 @@ func logGetTokenSuccess(cred azcore.TokenCredential, opts policy.TokenRequestOpt return } scope := strings.Join(opts.Scopes, ", ") - msg := fmt.Sprintf("%s.GetToken() acquired a token for scope %s\n", cred, scope) + msg := fmt.Sprintf("%T.GetToken() acquired a token for scope %s\n", cred, scope) log.Write(EventAuthentication, msg) }