Redact group ids in logging

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-09-25 16:41:57 -07:00
parent 4c48d12dc3
commit 314b29e426
No known key found for this signature in database
GPG key ID: A4931C09644C654B
3 changed files with 70 additions and 13 deletions

View file

@ -228,7 +228,12 @@
},
unload: function(reason) {
console.log('unloading conversation', this.model.id, 'due to:', reason);
console.log(
'unloading conversation',
this.model.idForLogging(),
'due to:',
reason
);
this.timerMenu.remove();
this.fileInput.remove();
@ -285,7 +290,13 @@
return;
}
console.log('trimming conversation', this.model.id, 'of', models.length, 'old messages');
console.log(
'trimming conversation',
this.model.idForLogging(),
'of',
models.length,
'old messages'
);
this.model.messageCollection.remove(models);
_.forEach(models, function(model) {
@ -430,7 +441,13 @@
var view = this.loadingScreen;
if (view) {
var openDelta = Date.now() - this.openStart;
console.log('Conversation', this.model.id, 'took', openDelta, 'milliseconds to load');
console.log(
'Conversation',
this.model.idForLogging(),
'took',
openDelta,
'milliseconds to load'
);
this.loadingScreen = null;
view.remove();
}