logger.Errorf("Certificate #%d in chain with subject %v encountered an error for revocation method %s at URL %q: %v", (i + 1), cert.Subject.String(), serverResult.RevocationMethod, serverResult.Server, serverResult.Error)
Code like this example should be optimized to avoid rendering the string before actually logging it.
logger.Errorf("Certificate #%d in chain with subject %v encountered an error for revocation method %s at URL %q: %v", (i + 1), cert.Subject, serverResult.RevocationMethod, serverResult.Server, serverResult.Error)
What is not working as expected?
Code like this example should be optimized to avoid rendering the string before actually logging it.
What did you expect to happen?
nil
How can we reproduce it?
nil
Describe your environment
source code
What is the version of your notation-go Library?
v1.3.0-rc.1