mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[misc] add a metric for failing downloads
This commit is contained in:
parent
697e1466dc
commit
6777432569
2 changed files with 2 additions and 0 deletions
|
@ -324,6 +324,7 @@ module.exports = ResourceWriter = {
|
|||
},
|
||||
'error downloading file for resources'
|
||||
)
|
||||
Metrics.inc('download-failed')
|
||||
}
|
||||
return callback()
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ describe('ResourceWriter', function() {
|
|||
'./OutputFileFinder': (this.OutputFileFinder = {}),
|
||||
'logger-sharelatex': { log: sinon.stub(), err: sinon.stub() },
|
||||
'./Metrics': (this.Metrics = {
|
||||
inc: sinon.stub(),
|
||||
Timer: (Timer = (function() {
|
||||
Timer = class Timer {
|
||||
static initClass() {
|
||||
|
|
Loading…
Reference in a new issue