mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 18:51:11 +00:00
Fine tune logging
This commit is contained in:
parent
9010557a75
commit
ea0b0c2ec2
1 changed files with 2 additions and 1 deletions
|
@ -52,11 +52,12 @@ module.exports = EditorUpdatesController =
|
||||||
|
|
||||||
_applyUpdateFromDocumentUpdater: (doc_id, update) ->
|
_applyUpdateFromDocumentUpdater: (doc_id, update) ->
|
||||||
io = require('../../infrastructure/Server').io
|
io = require('../../infrastructure/Server').io
|
||||||
logger.log doc_id: doc_id, version: update.v, source: update.meta?.source, "distributing update"
|
|
||||||
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"
|
||||||
client.emit "otUpdateApplied", v: update.v, doc: update.doc
|
client.emit "otUpdateApplied", v: update.v, doc: update.doc
|
||||||
else
|
else
|
||||||
|
logger.log doc_id: doc_id, version: update.v, source: update.meta?.source, client_id: client.id, "distributing update to collaborator"
|
||||||
client.emit "otUpdateApplied", update
|
client.emit "otUpdateApplied", update
|
||||||
|
|
||||||
_processErrorFromDocumentUpdater: (doc_id, error, message) ->
|
_processErrorFromDocumentUpdater: (doc_id, error, message) ->
|
||||||
|
|
Loading…
Reference in a new issue