mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 18:03:42 -05:00
log number of updates for future debugging
This commit is contained in:
parent
d4a8d88750
commit
be96548199
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ module.exports = UpdateManager =
|
|||
fetchAndApplyUpdates: (project_id, doc_id, callback = (error) ->) ->
|
||||
RealTimeRedisManager.getPendingUpdatesForDoc doc_id, (error, updates) =>
|
||||
return callback(error) if error?
|
||||
logger.log {project_id: project_id, doc_id: doc_id, count: updates.length}, "processing updates"
|
||||
if updates.length == 0
|
||||
return callback()
|
||||
async.eachSeries updates,
|
||||
|
|
Loading…
Reference in a new issue