remove insanely busy logging which is killing CPU

pull/10/head
Matthew Hodgson 2014-09-20 01:14:01 +01:00
parent 9fda37158a
commit 4c7a1abd39
1 changed files with 6 additions and 2 deletions

View File

@ -114,9 +114,13 @@ angular.module('matrixFilter', [])
// By default, use the room ID // By default, use the room ID
roomName = room_id; roomName = room_id;
// XXX: this is *INCREDIBLY* heavy logging for a function that calls every single
// time any kind of digest runs which refreshes a room name...
// commenting it out for now.
// Log some information that lead to this leak // Log some information that lead to this leak
console.log("Room ID leak for " + room_id); // console.log("Room ID leak for " + room_id);
console.log("room object: " + JSON.stringify(room, undefined, 4)); // console.log("room object: " + JSON.stringify(room, undefined, 4));
} }
return roomName; return roomName;