Replace console.error with logger.error
Related https://github.com/vector-im/element-web/issues/18425
This commit is contained in:
parent
9c594a8a96
commit
5e73a212f4
124 changed files with 417 additions and 250 deletions
|
@ -24,6 +24,8 @@ import ErrorDialog from "../components/views/dialogs/ErrorDialog";
|
|||
import SpaceStore from "../stores/SpaceStore";
|
||||
import Spinner from "../components/views/elements/Spinner";
|
||||
|
||||
import { logger } from "matrix-js-sdk/src/logger";
|
||||
|
||||
interface IProgress {
|
||||
roomUpgraded: boolean;
|
||||
roomSynced?: boolean;
|
||||
|
@ -78,7 +80,7 @@ export async function upgradeRoom(
|
|||
({ replacement_room: newRoomId } = await cli.upgradeRoom(room.roomId, targetVersion));
|
||||
} catch (e) {
|
||||
if (!handleError) throw e;
|
||||
console.error(e);
|
||||
logger.error(e);
|
||||
|
||||
Modal.createTrackedDialog("Room Upgrade Error", "", ErrorDialog, {
|
||||
title: _t('Error upgrading room'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue