Use window.log in browser context, turn on console eslint rule
This commit is contained in:
parent
4320b125dd
commit
5933a34a18
71 changed files with 816 additions and 559 deletions
|
@ -85,7 +85,7 @@ OutgoingMessage.prototype = {
|
|||
address
|
||||
);
|
||||
if (device.registrationId === 0) {
|
||||
console.log('device registrationId 0!');
|
||||
window.log.info('device registrationId 0!');
|
||||
}
|
||||
return builder.processPreKey(device).catch(
|
||||
function(error) {
|
||||
|
@ -267,7 +267,7 @@ OutgoingMessage.prototype = {
|
|||
} else if (error.message === 'Identity key changed') {
|
||||
error.timestamp = this.timestamp;
|
||||
error.originalMessage = this.message.toArrayBuffer();
|
||||
console.log(
|
||||
window.log.error(
|
||||
'Got "key changed" error from encrypt - no identityKey for application layer',
|
||||
number,
|
||||
deviceIds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue