mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 10:20:06 +02:00
Fix for issue with setting the loglevel via numbers
This commit is contained in:
@@ -36,6 +36,8 @@ export const setLogLevel = function (level: keyof typeof LEVELS | number | strin
|
|||||||
if (level in LEVELS) {
|
if (level in LEVELS) {
|
||||||
numericLevel = LEVELS[level as keyof typeof LEVELS];
|
numericLevel = LEVELS[level as keyof typeof LEVELS];
|
||||||
}
|
}
|
||||||
|
} else if (typeof level === 'number') {
|
||||||
|
numericLevel = level;
|
||||||
}
|
}
|
||||||
log.trace = () => {};
|
log.trace = () => {};
|
||||||
log.debug = () => {};
|
log.debug = () => {};
|
||||||
|
Reference in New Issue
Block a user