From ce346ddad3ddbc8fbae7242f7f52dc6befd4cc2f Mon Sep 17 00:00:00 2001 From: Pragya Chaudhary Date: Tue, 25 Nov 2025 22:09:58 +0530 Subject: [PATCH] Correct log level from error to info --- .../aws/zombie_cluster/run_zombie_cluster_resources.py | 2 +- .../aws/zombie_non_cluster/zombie_non_cluster_polices.py | 2 +- .../policy_runners/elasticsearch/upload_elastic_search.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud_governance/policy/policy_operations/aws/zombie_cluster/run_zombie_cluster_resources.py b/cloud_governance/policy/policy_operations/aws/zombie_cluster/run_zombie_cluster_resources.py index 9e2c5f20..1b128777 100644 --- a/cloud_governance/policy/policy_operations/aws/zombie_cluster/run_zombie_cluster_resources.py +++ b/cloud_governance/policy/policy_operations/aws/zombie_cluster/run_zombie_cluster_resources.py @@ -172,7 +172,7 @@ def zombie_cluster_resource(delete: bool = False, region: str = 'us-east-2', res es_operations.upload_to_elasticsearch(data=zombie_cluster.copy(), index=es_index) logger.info(f'Uploaded the policy results to elasticsearch index: {es_index}') else: - logger.error(f'No data to upload on @{account} at {datetime.utcnow()}') + logger.info(f'No data to upload on @{account} at {datetime.utcnow()}') else: logger.error('ElasticSearch host is not pingable, Please check ') return zombie_result diff --git a/cloud_governance/policy/policy_operations/aws/zombie_non_cluster/zombie_non_cluster_polices.py b/cloud_governance/policy/policy_operations/aws/zombie_non_cluster/zombie_non_cluster_polices.py index ec8e9c9f..26b03214 100644 --- a/cloud_governance/policy/policy_operations/aws/zombie_non_cluster/zombie_non_cluster_polices.py +++ b/cloud_governance/policy/policy_operations/aws/zombie_non_cluster/zombie_non_cluster_polices.py @@ -40,7 +40,7 @@ def run(self): self._es_operations.upload_to_elasticsearch(data=policy_dict.copy(), index=self._es_index) logger.info(f'Uploaded the policy results to elasticsearch index: {self._es_index}') else: - logger.error(f'No data to upload on @{self._account} at {datetime.utcnow()}') + logger.info(f'No data to upload on @{self._account} at {datetime.utcnow()}') else: logger.error('ElasticSearch host is not pingable, Please check ') diff --git a/cloud_governance/policy/policy_runners/elasticsearch/upload_elastic_search.py b/cloud_governance/policy/policy_runners/elasticsearch/upload_elastic_search.py index 061c7a82..8fee156e 100644 --- a/cloud_governance/policy/policy_runners/elasticsearch/upload_elastic_search.py +++ b/cloud_governance/policy/policy_runners/elasticsearch/upload_elastic_search.py @@ -35,6 +35,6 @@ def upload(self, data: Union[list, dict]): self._es_operations.upload_to_elasticsearch(data=policy_dict.copy(), index=self._es_index) logger.info(f'Uploaded the policy results to elasticsearch index: {self._es_index}') else: - logger.error(f'No data to upload on @{self._account} at {datetime.utcnow()}') + logger.info(f'No data to upload on @{self._account} at {datetime.utcnow()}') else: logger.error('ElasticSearch host is not pingable, Please check your connection')