From c46e130a9a9b199693f280d637d0def0b494b22d Mon Sep 17 00:00:00 2001 From: Vasi Vasireddy <41936996+vasireddy99@users.noreply.github.com> Date: Tue, 14 Nov 2023 13:35:38 -0800 Subject: [PATCH] Remove Log statements (#2474) --- cmd/awscollector/main.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/cmd/awscollector/main.go b/cmd/awscollector/main.go index f2529007f1..f7f9737ebd 100644 --- a/cmd/awscollector/main.go +++ b/cmd/awscollector/main.go @@ -88,27 +88,9 @@ func main() { } } -// Override upstream feature gates and print warning messages -func handleBreakingChanges(featgate *featuregate.Registry) error { - // TODO: remove after ADOT Collector v0.35.0 is released - log.Printf("attn: users of the prometheus or prometheusremotewrite exporter please refer to " + - "https://github.com/aws-observability/aws-otel-collector/issues/2367 in regards to an ADOT Collector v0.35.0 " + - "breaking change") - - log.Printf("attn: users of the awscontainerinsightreceiver please refer to " + - "https://github.com/aws-observability/aws-otel-collector/issues/2317 in regards to an ADOT Collector v0.35.0 " + - "breaking change") - - return nil -} - // We parse the flags manually here so that we can use feature gates when constructing // our default component list. Flags also need to be parsed before creating the config provider. func buildAndParseFlagSet(featgate *featuregate.Registry) (*flag.FlagSet, error) { - if err := handleBreakingChanges(featgate); err != nil { - return nil, err - } - flagSet := config.Flags(featgate) if err := flagSet.Parse(os.Args[1:]); err != nil {