Replace console.warn with logger.warn

Related https://github.com/vector-im/element-web/issues/18425
This commit is contained in:
Dariusz Niemczyk
2021-10-18 14:08:23 +02:00
committed by Dariusz Niemczyk
parent 5e73a212f4
commit 5290afcc4c
71 changed files with 195 additions and 127 deletions
+3 -3
View File
@@ -141,12 +141,12 @@ export const Notifier = {
}
if (!content.url) {
console.warn(`${roomId} has custom notification sound event, but no url key`);
logger.warn(`${roomId} has custom notification sound event, but no url key`);
return null;
}
if (!content.url.startsWith("mxc://")) {
console.warn(`${roomId} has custom notification sound event, but url is not a mxc url`);
logger.warn(`${roomId} has custom notification sound event, but url is not a mxc url`);
return null;
}
@@ -181,7 +181,7 @@ export const Notifier = {
}
await audioElement.play();
} catch (ex) {
console.warn("Caught error when trying to fetch room notification sound:", ex);
logger.warn("Caught error when trying to fetch room notification sound:", ex);
}
},