Use debug log level to avoid polluting embedder logs

This commit is contained in:
Daniel Imms
2022-07-29 11:24:23 -07:00
parent f8a9eb1db6
commit eb93b02c6c
+3 -1
View File
@@ -63,7 +63,9 @@ export function enableLigatures(term: Terminal, fallbackLigatures: string[] = []
// sure our font is still vaild.
if (currentCallFontName === term.options.fontFamily) {
loadingState = LoadingState.FAILED;
console.warn(loadError, new Error('Failure while loading font'));
if (term.options.logLevel === 'debug') {
console.debug(loadError, new Error('Failure while loading font'));
}
font = undefined;
loadError = e;
}