diff --git a/cmd/cluster/cluster.go b/cmd/cluster/cluster.go index 839002e..43fd655 100644 --- a/cmd/cluster/cluster.go +++ b/cmd/cluster/cluster.go @@ -43,7 +43,7 @@ var ClusterCmd = &cobra.Command{ func init() { ClusterCmd.AddCommand(cert.CertCmd) - util.AddCommandIfFeatureFlag(ClusterCmd, log_exporter.DbQueryLoggingCmd, util.DB_QUERY_LOGS) + ClusterCmd.AddCommand(log_exporter.DbQueryLoggingCmd) log_exporter.DbQueryLoggingCmd.PersistentFlags().StringVarP(&log_exporter.ClusterName, "cluster-name", "c", "", "[REQUIRED] The name of the cluster.") log_exporter.DbQueryLoggingCmd.MarkPersistentFlagRequired("cluster-name") diff --git a/cmd/db_query_logs_exporter_test.go b/cmd/db_query_logs_exporter_test.go index 8679cb9..a06fd6f 100644 --- a/cmd/db_query_logs_exporter_test.go +++ b/cmd/db_query_logs_exporter_test.go @@ -51,7 +51,6 @@ var _ = Describe("DB Query Logging", func() { Expect(err).ToNot(HaveOccurred()) os.Setenv("YBM_HOST", fmt.Sprintf("http://%s", server.Addr())) os.Setenv("YBM_APIKEY", "test-token") - os.Setenv("YBM_FF_DB_QUERY_LOGGING", "true") statusCode = 200 err = loadJson("./test/fixtures/list-clusters.json", &responseListClusters) Expect(err).ToNot(HaveOccurred()) diff --git a/cmd/util/feature_flags.go b/cmd/util/feature_flags.go index c62f918..bbb488c 100644 --- a/cmd/util/feature_flags.go +++ b/cmd/util/feature_flags.go @@ -37,7 +37,6 @@ const ( CONNECTION_POOLING FeatureFlag = "CONNECTION_POOLING" GOOGLECLOUD_INTEGRATION FeatureFlag = "GOOGLECLOUD_INTEGRATION" DR FeatureFlag = "DR" - DB_QUERY_LOGS FeatureFlag = "DB_QUERY_LOGGING" ) func (f FeatureFlag) String() string {