Skip to content

Commit 1fd724b

Browse files
authored
chore: move warning logs to error logs (#27728)
* chore: move warning logs to error logs * chore: fix python linting
1 parent 46b29b7 commit 1fd724b

57 files changed

Lines changed: 102 additions & 102 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ingestion/src/metadata/clients/domo_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def get_chart_details(self, page_id) -> Optional[DomoChartDetails]:
130130
)
131131

132132
except Exception as exc:
133-
logger.warning(f"Error while getting details for Card {page_id} - {exc}")
133+
logger.error(f"Error while getting details for Card {page_id} - {exc}")
134134
logger.debug(traceback.format_exc())
135135

136136
return None
@@ -140,7 +140,7 @@ def get_pipelines(self):
140140
response = self.client.get(path=WORKFLOW_URL, headers=HEADERS)
141141
return response
142142
except Exception as exc:
143-
logger.warning(f"Error while getting pipelines - {exc}")
143+
logger.error(f"Error while getting pipelines - {exc}")
144144
logger.debug(traceback.format_exc())
145145
return []
146146

@@ -164,7 +164,7 @@ def test_list_cards(self) -> None:
164164
self.client.get(path="content/v1/cards", headers=HEADERS)
165165
except Exception as exc:
166166
logger.debug(traceback.format_exc())
167-
logger.warning(f"Error listing cards due to [{exc}]")
167+
logger.error(f"Error listing cards due to [{exc}]")
168168
raise exc
169169

170170

ingestion/src/metadata/data_quality/validations/column/base/columnValueLengthsToBeBetween.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _run_validation(self) -> TestCaseResult:
7575
except (ValueError, RuntimeError) as exc:
7676
msg = f"Error computing {self.test_case.fullyQualifiedName}: {exc}" # type: ignore
7777
logger.debug(traceback.format_exc())
78-
logger.warning(msg)
78+
logger.error(msg)
7979
return self.get_test_case_result_object(
8080
self.execution_date,
8181
TestCaseStatus.Aborted,

ingestion/src/metadata/data_quality/validations/column/base/columnValueMaxToBeBetween.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _run_validation(self) -> TestCaseResult:
6868
except (ValueError, RuntimeError) as exc:
6969
msg = f"Error computing {self.test_case.fullyQualifiedName}: {exc}" # type: ignore
7070
logger.debug(traceback.format_exc())
71-
logger.warning(msg)
71+
logger.error(msg)
7272
return self.get_test_case_result_object(
7373
self.execution_date,
7474
TestCaseStatus.Aborted,

ingestion/src/metadata/data_quality/validations/column/base/columnValueMeanToBeBetween.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _run_validation(self) -> TestCaseResult:
6868
except (ValueError, RuntimeError) as exc:
6969
msg = f"Error computing {self.test_case.fullyQualifiedName}: {exc}" # type: ignore
7070
logger.debug(traceback.format_exc())
71-
logger.warning(msg)
71+
logger.error(msg)
7272
return self.get_test_case_result_object(
7373
self.execution_date,
7474
TestCaseStatus.Aborted,

ingestion/src/metadata/data_quality/validations/column/base/columnValueMedianToBeBetween.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _run_validation(self) -> TestCaseResult:
6868
except (ValueError, RuntimeError) as exc:
6969
msg = f"Error computing {self.test_case.fullyQualifiedName}: {exc}" # type: ignore
7070
logger.debug(traceback.format_exc())
71-
logger.warning(msg)
71+
logger.error(msg)
7272
return self.get_test_case_result_object(
7373
self.execution_date,
7474
TestCaseStatus.Aborted,

ingestion/src/metadata/data_quality/validations/column/base/columnValueMinToBeBetween.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _run_validation(self) -> TestCaseResult:
6565
except (ValueError, RuntimeError) as exc:
6666
msg = f"Error computing {self.test_case.fullyQualifiedName}: {exc}" # type: ignore
6767
logger.debug(traceback.format_exc())
68-
logger.warning(msg)
68+
logger.error(msg)
6969
return self.get_test_case_result_object(
7070
self.execution_date,
7171
TestCaseStatus.Aborted,

ingestion/src/metadata/data_quality/validations/column/base/columnValueStdDevToBeBetween.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def _run_validation(self) -> TestCaseResult:
7070
except (ValueError, RuntimeError) as exc:
7171
msg = f"Error computing {self.test_case.fullyQualifiedName}: {exc}" # type: ignore
7272
logger.debug(traceback.format_exc())
73-
logger.warning(msg)
73+
logger.error(msg)
7474
return self.get_test_case_result_object(
7575
self.execution_date,
7676
TestCaseStatus.Aborted,

ingestion/src/metadata/data_quality/validations/column/base/columnValuesMissingCount.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def _run_validation(self) -> TestCaseResult:
8484
except (ValueError, RuntimeError) as exc:
8585
msg = f"Error computing {self.test_case.fullyQualifiedName}: {exc}" # type: ignore
8686
logger.debug(traceback.format_exc())
87-
logger.warning(msg)
87+
logger.error(msg)
8888
return self.get_test_case_result_object(
8989
self.execution_date,
9090
TestCaseStatus.Aborted,

ingestion/src/metadata/data_quality/validations/column/base/columnValuesSumToBeBetween.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _run_validation(self) -> TestCaseResult:
6868
except (ValueError, RuntimeError) as exc:
6969
msg = f"Error computing {self.test_case.fullyQualifiedName}: {exc}" # type: ignore
7070
logger.debug(traceback.format_exc())
71-
logger.warning(msg)
71+
logger.error(msg)
7272
return self.get_test_case_result_object(
7373
self.execution_date,
7474
TestCaseStatus.Aborted,

ingestion/src/metadata/data_quality/validations/column/base/columnValuesToBeAtExpectedLocation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def _run_validation(self) -> TestCaseResult:
230230
except (ValueError, RuntimeError) as exc:
231231
msg = f"Error computing {self.test_case.fullyQualifiedName}: {exc}" # type: ignore
232232
logger.debug(traceback.format_exc())
233-
logger.warning(msg)
233+
logger.error(msg)
234234
return self.get_test_case_result_object(
235235
self.execution_date,
236236
TestCaseStatus.Aborted,

0 commit comments

Comments
 (0)