mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-08 18:16:44 +02:00
fix: Use log instead of console
This commit is contained in:
@@ -521,7 +521,7 @@ export const draw = function (text, id, version, diagObj) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (dayjs(maxTime).diff(dayjs(minTime), 'year') > 5) {
|
if (dayjs(maxTime).diff(dayjs(minTime), 'year') > 5) {
|
||||||
console.warn(
|
log.warn(
|
||||||
'The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.'
|
'The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.'
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user