mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Use Error LogLevel
This commit is contained in:
parent
6335da0932
commit
08f9edaf68
@ -21,6 +21,7 @@ import type {Variant, ThemeInformation} from "./parsers/types";
|
|||||||
import type {ThemeManifest} from "../../types/theme";
|
import type {ThemeManifest} from "../../types/theme";
|
||||||
import type {ILogItem} from "../../../logging/types";
|
import type {ILogItem} from "../../../logging/types";
|
||||||
import type {Platform} from "../Platform.js";
|
import type {Platform} from "../Platform.js";
|
||||||
|
import {LogLevel} from "../../../logging/LogFilter";
|
||||||
|
|
||||||
export class ThemeLoader {
|
export class ThemeLoader {
|
||||||
private _platform: Platform;
|
private _platform: Platform;
|
||||||
@ -46,7 +47,7 @@ export class ThemeLoader {
|
|||||||
const result = results[i];
|
const result = results[i];
|
||||||
if (result.status === "rejected") {
|
if (result.status === "rejected") {
|
||||||
console.error(`Failed to load manifest at ${manifestLocations[i]}, reason: ${result.reason}`);
|
console.error(`Failed to load manifest at ${manifestLocations[i]}, reason: ${result.reason}`);
|
||||||
log.log({ l: "Manifest fetch failed", location: manifestLocations[i], reason: result.reason });
|
log.log({ l: "Manifest fetch failed", location: manifestLocations[i], reason: result.reason }, LogLevel.Error);
|
||||||
failedManifestLoads.push(manifestLocations[i])
|
failedManifestLoads.push(manifestLocations[i])
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user