chore(logs): report warning on missing filestore object

This commit is contained in:
RhodeCode Admin 2024-08-20 16:19:38 +02:00
parent cd134c5b2d
commit 8ef98917aa

View file

@ -57,8 +57,8 @@ class FileStoreView(BaseAppView):
def _serve_file(self, file_uid):
if not self.storage.exists(file_uid):
store_path = self.storage.store_path(file_uid)
log.debug('File with FID:%s not found in the store under `%s`',
file_uid, store_path)
log.warning('File with FID:%s not found in the store under `%s`',
file_uid, store_path)
raise HTTPNotFound()
db_obj = FileStore.get_by_store_uid(file_uid, safe=True)