From e5160d9a36339cb1d04f6645fe82f7bb042fca3f Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 21 Nov 2016 15:33:13 +0000 Subject: [PATCH] log client id when disconnecting on otUpdateError only log errors for connected clients --- services/real-time/app/coffee/DocumentUpdaterController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/real-time/app/coffee/DocumentUpdaterController.coffee b/services/real-time/app/coffee/DocumentUpdaterController.coffee index 9ff6b8ee62..230eb14f98 100644 --- a/services/real-time/app/coffee/DocumentUpdaterController.coffee +++ b/services/real-time/app/coffee/DocumentUpdaterController.coffee @@ -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()