Skip to content

Commit

Permalink
fix: Use log instead of console
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Sep 26, 2023
1 parent 63f4a56 commit ee58743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/gantt/ganttRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ export const draw = function (text, id, version, diagObj) {
}

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.'
);
return;
Expand Down

0 comments on commit ee58743

Please sign in to comment.