1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-11 11:34:05 +00:00

Log number of retries

This commit is contained in:
James Allen 2016-09-30 13:38:47 +01:00
parent a7f44bcd01
commit 3c8aeb1262

View file

@ -43,7 +43,7 @@ module.exports = DiffManager =
callback = (error, args...) ->
if error?
if error.retry and retries > 0
logger.warn {error, project_id, doc_id, version}, "retrying getDocumentBeforeVersion"
logger.warn {error, project_id, doc_id, version, retries}, "retrying getDocumentBeforeVersion"
retry()
else
_callback(error)