From f045361b494161bd3809364772d0ce6aefdbc77a Mon Sep 17 00:00:00 2001 From: Andrew Rumble Date: Mon, 10 Mar 2025 15:59:20 +0000 Subject: [PATCH] Merge pull request #24205 from overleaf/ar-log-additional-information-when-getting-a-file-from-filestore [web] Gather information about files with no hash GitOrigin-RevId: 7f509c13f14902a40ae39bf1889103274de23040 --- .../web/app/src/Features/FileStore/FileStoreController.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/web/app/src/Features/FileStore/FileStoreController.mjs b/services/web/app/src/Features/FileStore/FileStoreController.mjs index e4e55c7704..9d9a3a2f5e 100644 --- a/services/web/app/src/Features/FileStore/FileStoreController.mjs +++ b/services/web/app/src/Features/FileStore/FileStoreController.mjs @@ -67,6 +67,12 @@ async function getFile(req, res) { )) } else { // The file-hash is missing. Fall back to filestore. + if (!Features.hasFeature('filestore')) { + logger.warn( + { file, fileId, projectId }, + 'filestore feature is disabled but we will attempt to fetch the file from filestore' + ) + } stream = await FileStoreHandler.promises.getFileStream( projectId, fileId,