From 84d5e3e75dbe44d99af21e22eb0fe1b99a12222c Mon Sep 17 00:00:00 2001 From: Karolis Rusenas Date: Wed, 29 Aug 2018 23:40:29 +0100 Subject: [PATCH] removing debug info --- extension/credentialshelper/aws/aws.go | 6 ++---- extension/notification/notification.go | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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 }