From 7dcd4628832d96f1ca2bbc0f000e988c099906d9 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Fri, 25 Sep 2020 18:23:30 -0400 Subject: [PATCH] Clean up old code --- config/config.go | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/config/config.go b/config/config.go index 60f82ed3..cc3e3e09 100644 --- a/config/config.go +++ b/config/config.go @@ -120,46 +120,6 @@ func validateAlertingConfig(config *Config) { invalidProviders = append(invalidProviders, alertType) } } - //if config.Alerting.Slack != nil { - // if config.Alerting.Slack.IsValid() { - // validProviders = append(validProviders, core.SlackAlert) - // } else { - // log.Printf("[config][validateAlertingConfig] Ignoring provider=%s because configuration is invalid", core.SlackAlert) - // invalidProviders = append(invalidProviders, core.SlackAlert) - // } - //} else { - // invalidProviders = append(invalidProviders, core.SlackAlert) - //} - //if config.Alerting.Twilio != nil { - // if config.Alerting.Twilio.IsValid() { - // validProviders = append(validProviders, core.TwilioAlert) - // } else { - // log.Printf("[config][validateAlertingConfig] Ignoring provider=%s because configuration is invalid", core.TwilioAlert) - // invalidProviders = append(invalidProviders, core.TwilioAlert) - // } - //} else { - // invalidProviders = append(invalidProviders, core.TwilioAlert) - //} - //if config.Alerting.PagerDuty != nil { - // if config.Alerting.PagerDuty.IsValid() { - // validProviders = append(validProviders, core.PagerDutyAlert) - // } else { - // log.Printf("[config][validateAlertingConfig] Ignoring provider=%s because configuration is invalid", core.PagerDutyAlert) - // invalidProviders = append(invalidProviders, core.PagerDutyAlert) - // } - //} else { - // invalidProviders = append(invalidProviders, core.PagerDutyAlert) - //} - //if config.Alerting.Custom != nil { - // if config.Alerting.Custom.IsValid() { - // validProviders = append(validProviders, core.CustomAlert) - // } else { - // log.Printf("[config][validateAlertingConfig] Ignoring provider=%s because configuration is invalid", core.CustomAlert) - // invalidProviders = append(invalidProviders, core.CustomAlert) - // } - //} else { - // invalidProviders = append(invalidProviders, core.CustomAlert) - //} log.Printf("[config][validateAlertingConfig] configuredProviders=%s; ignoredProviders=%s", validProviders, invalidProviders) }