mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user