Use Error LogLevel

This commit is contained in:
RMidhunSuresh 2022-08-15 22:58:26 +05:30
parent 6335da0932
commit 08f9edaf68

View File

@ -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;
} }