From eb93b02c6cb7329cdceb7d3ec0500554cfcd49de Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Fri, 29 Jul 2022 11:24:23 -0700 Subject: [PATCH] Use debug log level to avoid polluting embedder logs --- addons/xterm-addon-ligatures/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/xterm-addon-ligatures/src/index.ts b/addons/xterm-addon-ligatures/src/index.ts index 4364bfe5..82589e36 100644 --- a/addons/xterm-addon-ligatures/src/index.ts +++ b/addons/xterm-addon-ligatures/src/index.ts @@ -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; }