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
|
@ -312,7 +312,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
|
|||
//
|
||||
// for now, just warn about this. But we're going to end up paginating
|
||||
// both rooms separately, and it's all bad.
|
||||
console.warn("Replacing timelineSet on a TimelinePanel - confusion may ensue");
|
||||
logger.warn("Replacing timelineSet on a TimelinePanel - confusion may ensue");
|
||||
}
|
||||
|
||||
const differentEventId = newProps.eventId != this.props.eventId;
|
||||
|
@ -1266,7 +1266,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
|
|||
// Somehow, it seems to be possible for live events to not have
|
||||
// a timeline, even though that should not happen. :(
|
||||
// https://github.com/vector-im/element-web/issues/12120
|
||||
console.warn(
|
||||
logger.warn(
|
||||
`Event ${events[i].getId()} in room ${room.roomId} is live, ` +
|
||||
`but it does not have a timeline`,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue