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 SettingsStore from "../settings/SettingsStore";
|
|||
import IntegrationManager from "../components/views/settings/IntegrationManager";
|
||||
import { IntegrationManagers } from "./IntegrationManagers";
|
||||
|
||||
import { logger } from "matrix-js-sdk/src/logger";
|
||||
|
||||
export enum Kind {
|
||||
Account = "account",
|
||||
Config = "config",
|
||||
|
@ -94,7 +96,7 @@ export class IntegrationManagerInstance {
|
|||
return;
|
||||
}
|
||||
|
||||
console.error(e);
|
||||
logger.error(e);
|
||||
newProps["connected"] = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@ export class IntegrationManagers {
|
|||
const result = await fetch(`https://${domainName}/.well-known/matrix/integrations`);
|
||||
wkConfig = await result.json();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
logger.error(e);
|
||||
console.warn("Failed to locate integration manager");
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue