@@ -226,14 +226,14 @@ func (p *MastodonProvider) Configure(ctx context.Context, req provider.Configure
226226 tflog .Debug (ctx , "mastodon_provider current user: " + user .Acct )
227227
228228 if access_token != "" {
229- ctx = tflog .SetField (ctx , "mastodon_access_token" , access_token ) //ANNO We can log the access token to help with debugging.
230- ctx = tflog .MaskFieldValuesWithFieldKeys (ctx , "mastodon_access_token" ) //ANNO We can also make sure to filter out the value from the logs.
229+ ctx = tflog .SetField (ctx , "mastodon_access_token" , access_token )
230+ tflog .MaskFieldValuesWithFieldKeys (ctx , "mastodon_access_token" )
231231 } else if user_email != "" && user_password != "" {
232232 ctx = tflog .SetField (ctx , "mastodon_user_email" , user_email )
233233 ctx = tflog .SetField (ctx , "mastodon_user_password" , user_password )
234- ctx = tflog .MaskFieldValuesWithFieldKeys (ctx , "mastodon_user_password" )
234+ tflog .MaskFieldValuesWithFieldKeys (ctx , "mastodon_user_password" )
235235 } else {
236- resp .Diagnostics .AddAttributeError ( //ANNO We can provide more than one error on the same flow.
236+ resp .Diagnostics .AddAttributeError (
237237 path .Root ("user-access-token" ),
238238 "Missing Mastodon Credentials" ,
239239 "The provider cannot create the Mastodon API client as neither the Access Token or the Username and Password fields are set." ,
0 commit comments