mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
log number of updates for future debugging
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user