Skip to content

Commit a57b7d1

Browse files
committed
feat(logs): Refactor logs for style_modifier_hunter
1 parent 9607018 commit a57b7d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/lib/style_modifier_hunter.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"use strict";
22

3+
const logger = require('./log');
4+
35
const style_modifier_hunter = function () {
46

57
/**
@@ -17,9 +19,7 @@ const style_modifier_hunter = function () {
1719
//replace the special character pipe | used to separate multiple classes with a space
1820
styleModifier = styleModifier.replace(/\|/g, ' ');
1921

20-
if (patternlab.config.debug) {
21-
console.log('found partial styleModifier within pattern ' + pattern.patternPartial);
22-
}
22+
logger.debug(`Found partial styleModifier within pattern ${pattern.patternPartial}`);
2323

2424
//replace the stylemodifier placeholder with the class name
2525
pattern.extendedTemplate = pattern.extendedTemplate.replace(/{{[ ]?styleModifier[ ]?}}/i, styleModifier);

0 commit comments

Comments
 (0)