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
This commit is contained in:
Andrew Rumble 2025-03-10 15:59:20 +00:00 committed by Copybot
parent 441c7a89a7
commit f045361b49

View file

@ -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,