diff --git a/extension/credentialshelper/aws/aws.go b/extension/credentialshelper/aws/aws.go index a359647e..74443a0e 100644 --- a/extension/credentialshelper/aws/aws.go +++ b/extension/credentialshelper/aws/aws.go @@ -4,9 +4,9 @@ import ( "encoding/base64" "fmt" "net/url" + "regexp" "strings" "time" - "regexp" // "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws" @@ -24,6 +24,7 @@ import ( // This is required to reduce chance of hiting rate limits, // more info here: https://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html const AWSCredentialsExpiry = 2 * time.Hour + var registryRegxp *regexp.Regexp func init() { @@ -46,9 +47,7 @@ type CredentialsHelper struct { func New() *CredentialsHelper { ch := &CredentialsHelper{} ch.enabled = true - log.Infof("extension.credentialshelper.aws: enabled") ch.cache = NewCache(AWSCredentialsExpiry) - return ch } @@ -167,4 +166,3 @@ func parseRegistry(registry string) (registryID string, region string, err error return registryParsed["registryID"], registryParsed["region"], nil } - diff --git a/extension/notification/notification.go b/extension/notification/notification.go index 4c232da8..c5bfd1b5 100644 --- a/extension/notification/notification.go +++ b/extension/notification/notification.go @@ -68,7 +68,7 @@ func RegisterSender(name string, s Sender) { log.WithFields(log.Fields{ "name": name, - }).Info("extension.notification: sender registered") + }).Debug("extension.notification: sender registered") senders[name] = s }