Change logger to log

This commit is contained in:
harshilparmar
2021-02-06 15:56:05 +05:30
parent edd7bc7197
commit 7019a1149d
41 changed files with 366 additions and 376 deletions

View File

@@ -4,7 +4,7 @@ import erDb from './erDb';
import erParser from './parser/erDiagram';
import dagre from 'dagre';
import { getConfig } from '../../config';
import { logger } from '../../logger';
import { log } from '../../logger';
import erMarkers from './erMarkers';
import { configureSvgSize } from '../../utils';
@@ -414,7 +414,7 @@ const drawRelationshipFromLayout = function(svg, rel, g, insert) {
* @param id the unique id of the DOM node that contains the diagram
*/
export const draw = function(text, id) {
logger.info('Drawing ER diagram');
log.info('Drawing ER diagram');
erDb.clear();
const parser = erParser.parser;
parser.yy = erDb;
@@ -423,7 +423,7 @@ export const draw = function(text, id) {
try {
parser.parse(text);
} catch (err) {
logger.debug('Parsing failed');
log.debug('Parsing failed');
}
// Get a reference to the svg node that contains the text