You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -52,7 +52,7 @@ const pattern_assembler = function () {
52
52
returnpatternlab.patterns[i];
53
53
}
54
54
}
55
-
plutils.warning('Could not find pattern referenced with partial syntax '+partialName+'. This can occur when a pattern was renamed, moved, or no longer exists but it still called within a different template somewhere.');
55
+
logger.warning('Could not find pattern referenced with partial syntax '+partialName+'. This can occur when a pattern was renamed, moved, or no longer exists but it still called within a different template somewhere.');
56
56
returnundefined;
57
57
}
58
58
@@ -103,9 +103,7 @@ const pattern_assembler = function () {
103
103
// if the pattern is new, we must register it with various data structures!
104
104
if(isNew){
105
105
106
-
if(patternlab.config.debug){
107
-
console.log('found new pattern '+pattern.patternPartial);
108
-
}
106
+
logger.debug(`found new pattern ${pattern.patternPartial}`);
109
107
110
108
// do global registration
111
109
if(pattern.isPattern){
@@ -182,20 +180,15 @@ const pattern_assembler = function () {
182
180
currentPattern.links=markdownObject.links;
183
181
}
184
182
}else{
185
-
if(patternlab.config.debug){
186
-
console.log('error processing markdown for '+currentPattern.patternPartial);
187
-
}
188
-
}
189
-
190
-
if(patternlab.config.debug){
191
-
console.log('found pattern-specific markdown for '+currentPattern.patternPartial);
183
+
logger.warning(`error processing markdown for ${currentPattern.patternPartial}`);
192
184
}
185
+
logger.debug(`found pattern-specific markdown for ${currentPattern.patternPartial}`);
193
186
}
194
187
catch(err){
195
188
// do nothing when file not found
196
189
if(err.code!=='ENOENT'){
197
-
console.log('there was an error setting pattern keys after markdown parsing of the companion file for pattern '+currentPattern.patternPartial);
198
-
console.log(err);
190
+
logger.warning(`'there was an error setting pattern keys after markdown parsing of the companion file for pattern ${currentPattern.patternPartial}`)
191
+
logger.warning(err);
199
192
}
200
193
}
201
194
}
@@ -248,15 +241,15 @@ const pattern_assembler = function () {
0 commit comments