Use debug log level to avoid polluting embedder logs
This commit is contained in:
@@ -63,7 +63,9 @@ export function enableLigatures(term: Terminal, fallbackLigatures: string[] = []
|
|||||||
// sure our font is still vaild.
|
// sure our font is still vaild.
|
||||||
if (currentCallFontName === term.options.fontFamily) {
|
if (currentCallFontName === term.options.fontFamily) {
|
||||||
loadingState = LoadingState.FAILED;
|
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;
|
font = undefined;
|
||||||
loadError = e;
|
loadError = e;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user