You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A solution could be to silence the log output with log.SetOutput(io.Discard) then re-enable it, similar to in this PR:
// Disable log output produced by AWS Vault code
log.SetOutput(io.Discard)
// Read config file from the location set in AWS_CONFIG_FILE env var or from ~/.aws/config
configFile, err := confighelpers.LoadConfigFromEnv()
if err != nil {
return nil, err
}
// Re-enable log output
log.SetOutput(os.Stdout)
Platform or tool
AWS
Desired or expected behavior
op plugin init aws
aws
command using the plugin, e.g.aws s3 ls
The command should run successfully with no unnecessary log output.
Current behavior
A few unnecessary lines of log output are outputted (shown in Relevant log output).
The source of these logs is
/plugins/aws/sts_provisioner.go
->getAWSAuthConfigurationForProfile
:configFile, err := confighelpers.LoadConfigFromEnv()
A solution could be to silence the log output with
log.SetOutput(io.Discard)
then re-enable it, similar to in this PR:Relevant log output
op CLI version
No response
The text was updated successfully, but these errors were encountered: