Skip to content

Commit 41a61c2

Browse files
committed
feat(logs): Refactor logs for markdown_parser
1 parent 9442658 commit 41a61c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/lib/markdown_parser.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
const md = require('markdown-it')();
33
const yaml = require('js-yaml');
4+
const logger = require('./log');
45

56
const markdown_parser = function () {
67

@@ -36,8 +37,8 @@ const markdown_parser = function () {
3637
returnObject.markdown = md.render(block);
3738
}
3839
} catch (ex) {
39-
console.log(ex);
40-
console.log('error parsing markdown block', block);
40+
logger.warning(ex);
41+
logger.warning(`error parsing markdown block ${block}`);
4142
return undefined;
4243
}
4344

0 commit comments

Comments
 (0)