Skip to content

Build your personal knowledge base with Trilium Notes

chore(client/ts): reduce log level for syntax highlight widget

Elian Doran8e3a75ad5732
diff --git a/src/public/app/widgets/type_widgets/ckeditor/syntax_highlight.ts b/src/public/app/widgets/type_widgets/ckeditor/syntax_highlight.ts
index 36d7f0f404..7ad0424acf 100644
--- a/src/public/app/widgets/type_widgets/ckeditor/syntax_highlight.ts
+++ b/src/public/app/widgets/type_widgets/ckeditor/syntax_highlight.ts
@@ -25,7 +25,7 @@ const HIGHLIGHT_MAX_BLOCK_COUNT = 500;
const tag = "SyntaxHighlightWidget";
const debugLevels = ["error", "warn", "info", "log", "debug"];
-const debugLevel = debugLevels.indexOf("debug");
+const debugLevel = debugLevels.indexOf("warn");
let warn = function (...args: unknown[]) {};
if (debugLevel >= debugLevels.indexOf("warn")) {