mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Don't print massive stack trace when there is no room_id
This commit is contained in:
@@ -10,7 +10,7 @@ module.exports = WebsocketLoadBalancer =
|
||||
|
||||
emitToRoom: (room_id, message, payload...) ->
|
||||
if !room_id?
|
||||
logger.err {err: new Error("Empty room_id"), message, payload}, "error emitting to room"
|
||||
logger.warn {message, payload}, "no room_id provided, ignoring emitToRoom"
|
||||
return
|
||||
@rclientPub.publish "editor-events", JSON.stringify
|
||||
room_id: room_id
|
||||
|
||||
Reference in New Issue
Block a user