Skip to content

Commit

Permalink
Flagged corrupt file logs as ERROR instead of INFO. (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
j9sh264 authored Mar 19, 2024
1 parent 9801a3d commit fe59c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weather_mv/loader_pipeline/regrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def apply(self, uri: str) -> None:
with open_local(uri) as local_grib:
logger.info(f"Checking for {uri}'s validity...")
if self.is_grib_file_corrupt(local_grib):
logger.info(f"Corrupt GRIB file found: {uri}.")
logger.error(f"Corrupt GRIB file found: {uri}.")
return
logger.info(f"No issues found with {uri}.")

Expand Down

0 comments on commit fe59c7e

Please sign in to comment.