Replace console.warn with logger.warn
Related https://github.com/vector-im/element-web/issues/18425
This commit is contained in:
parent
5e73a212f4
commit
5290afcc4c
71 changed files with 195 additions and 127 deletions
|
@ -22,6 +22,8 @@ import { IContent } from "matrix-js-sdk/src/models/event";
|
|||
|
||||
import { bodyToHtml, checkBlockNode, IOptsReturnString } from "../HtmlUtils";
|
||||
|
||||
import { logger } from "matrix-js-sdk/src/logger";
|
||||
|
||||
const decodeEntities = (function() {
|
||||
let textarea = null;
|
||||
return function(str: string): string {
|
||||
|
@ -218,7 +220,7 @@ function renderDifferenceInDOM(originalRootNode: Node, diff: IDiff, diffMathPatc
|
|||
}
|
||||
default:
|
||||
// Should not happen (modifyComment, ???)
|
||||
console.warn("MessageDiffUtils::editBodyDiffToHtml: diff action not supported atm", diff);
|
||||
logger.warn("MessageDiffUtils::editBodyDiffToHtml: diff action not supported atm", diff);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue