mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't print massive stack trace when there is no room_id
This commit is contained in:
parent
d62dc7ca3a
commit
7a9f7f0870
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue