fix: Handle missing cache_stats key in logging to prevent KeyError
This commit is contained in:
parent
e7b31a510a
commit
0b82bb13c4
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user