mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
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.
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user