Merge pull request #22488 from overleaf/bg-add-filestore-request-logging

add filestore request logging

GitOrigin-RevId: 0ec5c413f0e88521e1da268699ee2ee281c560f1
This commit is contained in:
Brian Gough
2024-12-13 09:05:16 +00:00
committed by Copybot
parent 09bbbfbb28
commit 9d4eeeea90
7 changed files with 21 additions and 15 deletions
@@ -386,7 +386,9 @@ describe('FileStoreHandler', function () {
return done(err)
}
this.request.args[0][0].method.should.equal('get')
this.request.args[0][0].uri.should.equal(fileUrl)
this.request.args[0][0].uri.should.equal(
fileUrl + '?from=getFileStream'
)
done()
}
)
@@ -475,7 +477,8 @@ describe('FileStoreHandler', function () {
describe('getFileSize', function () {
it('returns the file size reported by filestore', function (done) {
const expectedFileSize = 32432
const fileUrl = this.getFileUrl(this.projectId, this.fileId)
const fileUrl =
this.getFileUrl(this.projectId, this.fileId) + '?from=getFileSize'
this.request.head.yields(
new Error('request.head() received unexpected arguments')
)