Spaces:
Sleeping
Sleeping
axeronis commited on
Commit ·
12f1f85
1
Parent(s): 3b558aa
fix(logs): suppress 403 Google warning during cache invalidation
Browse files131 unmodified lines132133134135136137138131 unmodified lines)logger.info(" - Deleted from Google Cloud")except Exception as e:logger.warning(f" - Google delete failed (maybe already gone): {e}")# Clear DBtenant.ai_cache_key = None131 unmodified lines132133134135136137138139140141142143131 unmodified lines)logger.info(" - Deleted from Google Cloud")except Exception as e:# Suppress 403/404 errors as they mean it's already goneerror_str = str(e)if "403" in error_str or "404" in error_str:logger.info(f" - Google cache already cleared ({tenant.ai_cache_key})")else:logger.warning(f" - Google delete failed: {e}")# Clear DBtenant.ai_cache_key = None
backend/app/services/ai_memory_manager.py+6-1