chore: Use logger

This commit is contained in:
Sidharth Vinod 2023-01-24 16:11:04 +05:30
parent b36e5d0d3b
commit 6792bb94b7
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 1 additions and 2 deletions

View File

@ -339,8 +339,7 @@ const contentLoaded = function () {
if (mermaid.startOnLoad) {
const { startOnLoad } = mermaidAPI.getConfig();
if (startOnLoad) {
// eslint-disable-next-line no-console
mermaid.init().catch((err) => console.error('Mermaid failed to initialize', err));
mermaid.init().catch((err) => log.error('Mermaid failed to initialize', err));
}
}
};