mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +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 {ILogItem} from "../../../logging/types";
|
||||
import type {Platform} from "../Platform.js";
|
||||
import {LogLevel} from "../../../logging/LogFilter";
|
||||
|
||||
export class ThemeLoader {
|
||||
private _platform: Platform;
|
||||
@ -46,7 +47,7 @@ export class ThemeLoader {
|
||||
const result = results[i];
|
||||
if (result.status === "rejected") {
|
||||
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])
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user