mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-21 14:12:01 +00:00
add logging
This commit is contained in:
parent
a07e516f65
commit
37d1c96051
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ module.exports = DocumentUpdaterController =
|
||||||
DocumentUpdaterController._processErrorFromDocumentUpdater(io, message.doc_id, message.error, message)
|
DocumentUpdaterController._processErrorFromDocumentUpdater(io, message.doc_id, message.error, message)
|
||||||
|
|
||||||
_applyUpdateFromDocumentUpdater: (io, doc_id, update) ->
|
_applyUpdateFromDocumentUpdater: (io, doc_id, update) ->
|
||||||
|
logger.log({doc_id}, "apply update from doc updater")
|
||||||
for client in io.sockets.clients(doc_id)
|
for client in io.sockets.clients(doc_id)
|
||||||
if client.id == update.meta.source
|
if client.id == update.meta.source
|
||||||
logger.log doc_id: doc_id, version: update.v, source: update.meta?.source, "distributing update to sender"
|
logger.log doc_id: doc_id, version: update.v, source: update.meta?.source, "distributing update to sender"
|
||||||
|
|
Loading…
Reference in a new issue