From 7e4bc71be5e5df350f92c8cec301aa64fd50e598 Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Tue, 3 May 2022 12:29:42 -0700 Subject: [PATCH] Fixed logging bug on successful token acquisition --- sdk/azidentity/logging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }