From 427769f8bd458e42acdd68218498bf9701449c51 Mon Sep 17 00:00:00 2001 From: Andy Watson Date: Thu, 16 May 2024 17:36:09 -0400 Subject: [PATCH] remove println statements --- pagerduty/cache.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pagerduty/cache.go b/pagerduty/cache.go index 0718e17..24d53e8 100644 --- a/pagerduty/cache.go +++ b/pagerduty/cache.go @@ -59,15 +59,12 @@ func InitCache(c *Client) { cacheMongoURL = os.Getenv("TF_PAGERDUTY_CACHE") re := regexp.MustCompile("^mongodb+(\\+srv)?://") isMongodbURL := re.Match([]byte(cacheMongoURL)) - if isMongodbURL { - log.Printf("===== Enabling PagerDuty Mongo cache at %v", cacheMongoURL) + if isMongodbURL { cacheType = "mongo" - } else if cacheMongoURL == "memory" { - log.Println("===== Enabling PagerDuty memory cache =====") + } else if cacheMongoURL == "memory" { cacheType = "memory" return - } else { - log.Println("===== PagerDuty Cache Skipping Init =====") + } else { return }