Room id leaks: log them when then happens. Plus log the conditions that made them happen

This commit is contained in:
Emmanuel ROHEE 2014-09-19 09:17:18 +02:00
parent cf1e167034
commit 301ef1bdc6

View file

@ -113,6 +113,10 @@ angular.module('matrixFilter', [])
if (undefined === roomName) {
// By default, use the room ID
roomName = room_id;
// Log some information that lead to this leak
console.log("Room ID leak for " + room_id);
console.log("room object: " + JSON.stringify(room, undefined, 4));
}
return roomName;