removing debug info

feature/approvals_in_mem
Karolis Rusenas 2018-08-29 23:40:29 +01:00
parent cdb190ad86
commit 84d5e3e75d
2 changed files with 3 additions and 5 deletions

View File

@ -4,9 +4,9 @@ import (
"encoding/base64" "encoding/base64"
"fmt" "fmt"
"net/url" "net/url"
"regexp"
"strings" "strings"
"time" "time"
"regexp"
// "github.com/aws/aws-sdk-go/aws" // "github.com/aws/aws-sdk-go/aws"
"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, // This is required to reduce chance of hiting rate limits,
// more info here: https://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html // more info here: https://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html
const AWSCredentialsExpiry = 2 * time.Hour const AWSCredentialsExpiry = 2 * time.Hour
var registryRegxp *regexp.Regexp var registryRegxp *regexp.Regexp
func init() { func init() {
@ -46,9 +47,7 @@ type CredentialsHelper struct {
func New() *CredentialsHelper { func New() *CredentialsHelper {
ch := &CredentialsHelper{} ch := &CredentialsHelper{}
ch.enabled = true ch.enabled = true
log.Infof("extension.credentialshelper.aws: enabled")
ch.cache = NewCache(AWSCredentialsExpiry) ch.cache = NewCache(AWSCredentialsExpiry)
return ch return ch
} }
@ -167,4 +166,3 @@ func parseRegistry(registry string) (registryID string, region string, err error
return registryParsed["registryID"], registryParsed["region"], nil return registryParsed["registryID"], registryParsed["region"], nil
} }

View File

@ -68,7 +68,7 @@ func RegisterSender(name string, s Sender) {
log.WithFields(log.Fields{ log.WithFields(log.Fields{
"name": name, "name": name,
}).Info("extension.notification: sender registered") }).Debug("extension.notification: sender registered")
senders[name] = s senders[name] = s
} }