Enhance CSV metadata with error tracking for mosaics and tiles

This commit is contained in:
2026-04-25 16:06:54 -04:00
parent e8d3bf7180
commit ae37c06f15
10 changed files with 406 additions and 34 deletions
+9 -1
View File
@@ -313,11 +313,19 @@ def _print_summary(
row(
"Mosaics failed:",
str(totals.mosaics_failed),
"0 bytes or HTTP error; see log above",
"0 bytes or HTTP error; see scans.csv and logs",
)
)
if not metadata_only and not mosaic_only:
log.info(row("Tiles downloaded:", str(totals.tiles_downloaded)))
if not dry_run and not metadata_only:
log.info(
row(
"Mosaic & tile errors:",
"",
f"{SCANS_CSV_FILENAME} & {TILES_CSV_FILENAME} (error_class, error, error_code)",
)
)
if metadata_only:
log.info(row("Metadata written:", str(totals.metadata_written), "new JSON files"))
log.info(sep)