fix: Handle missing cache_stats key in logging to prevent KeyError

This commit is contained in:
Jarian Cottingham 2026-02-02 09:24:02 -06:00
parent e7b31a510a
commit 0b82bb13c4

View File

@ -66,7 +66,10 @@ def main():
logger.info(f"Total processed: {stats['total_processed']}")
logger.info(f"Total failed: {stats['total_failed']}")
logger.info(f"Duration: {stats['duration']:.2f} seconds")
if 'cache_stats' in stats:
logger.info(f"Cache stats: {stats['cache_stats']}")
else:
logger.info("No cache stats available")
# Print metrics summary
metrics_summary = metrics_collector.get_metrics_summary()