Skip to content

Commit

Permalink
fix(ingest/looker): downgrade missing chart type log level
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Jul 25, 2024
1 parent 5a2fc3c commit 9836451
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -594,19 +594,21 @@ def _get_chart_type(
}
type_str = dashboard_element.type
if not type_str:
self.reporter.report_warning(
self.reporter.info(
title="Unrecognized Chart Type",
message=f"Chart type {type_str} is not recognized. Setting to None",
context=f"Dashboard Id: {dashboard_element.id}",
message="Chart is missing a chart type.",
context=f"Chart Id: {dashboard_element.id}",
log=False,
)
return None
try:
chart_type = type_mapping[type_str]
except KeyError:
self.reporter.report_warning(
self.reporter.info(
title="Unrecognized Chart Type",
message=f"Chart type {type_str} is not recognized. Setting to None",
context=f"Dashboard Id: {dashboard_element.id}",
context=f"Chart Id: {dashboard_element.id}",
log=False,
)
chart_type = None

Expand Down

0 comments on commit 9836451

Please sign in to comment.