Use Error LogLevel
This commit is contained in:
parent
6335da0932
commit
08f9edaf68
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue