Don't print massive stack trace when there is no room_id

This commit is contained in:
James Allen 2014-11-24 22:28:50 +00:00
parent d62dc7ca3a
commit 7a9f7f0870

View file

@ -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