mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
log client id when disconnecting on otUpdateError
only log errors for connected clients
This commit is contained in:
parent
5d377713d6
commit
e5160d9a36
1 changed files with 1 additions and 1 deletions
|
@ -35,8 +35,8 @@ module.exports = DocumentUpdaterController =
|
|||
client.emit "otUpdateApplied", update
|
||||
|
||||
_processErrorFromDocumentUpdater: (io, doc_id, error, message) ->
|
||||
logger.error err: error, doc_id: doc_id, "error from document updater"
|
||||
for client in io.sockets.clients(doc_id)
|
||||
logger.error err: error, doc_id: doc_id, client_id: client.id, "error from document updater, disconnecting client"
|
||||
client.emit "otUpdateError", error, message
|
||||
client.disconnect()
|
||||
|
||||
|
|
Loading…
Reference in a new issue