mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-19 16:15:25 +00: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:
parent
441c7a89a7
commit
f045361b49
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue