Skip to content

Commit 3fe17e5

Browse files
committed
chore(logs): Clean up logs a bit
1 parent 672ea88 commit 3fe17e5

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

core/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ const patternlab_module = function (config) {
186186
// TODO we can reduce the time needed by only processing changed patterns and their partials
187187
return patternlab.processAllPatternsRecursive(paths.source.patterns).then(() => {
188188

189-
console.log('+++++++++++++++++++++?????????')
190-
191189
//take the user defined head and foot and process any data and patterns that apply
192190
const headPatternPromise = processMetaPattern(`_00-head.${patternlab.config.patternExtension}`, 'userHead', patternlab);
193191
const footPatternPromise = processMetaPattern(`_01-foot.${patternlab.config.patternExtension}`, 'userFoot', patternlab);
@@ -219,8 +217,6 @@ const patternlab_module = function (config) {
219217
// rebuild all patterns
220218
patternsToBuild = null;
221219

222-
console.log('222', patternlab.incrementalBuildsEnabled)
223-
224220
if (patternlab.incrementalBuildsEnabled) {
225221
// When the graph was loaded from file, some patterns might have been moved/deleted between runs
226222
// so the graph data become out of sync
@@ -241,9 +237,6 @@ const patternlab_module = function (config) {
241237
}
242238

243239
//render all patterns last, so lineageR works
244-
245-
console.log(243, patternsToBuild)
246-
247240
return patternsToBuild
248241
.reduce((previousPromise, pattern) => {
249242
return previousPromise.then(() => patternlab.renderSinglePattern(pattern, head));

core/lib/decompose.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ const list_item_hunter = new lih();
1818
*/
1919
module.exports = function (pattern, patternlab, ignoreLineage) {
2020

21-
console.log('21 currentPattern', pattern.patternPartial)
22-
2321
//set the extendedTemplate to operate on later if we find partials to replace
2422
if (!pattern.extendedTemplate) {
2523
pattern.extendedTemplate = pattern.template;

core/lib/patternlab.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ module.exports = class PatternLab {
317317
///////////////
318318

319319
//render the extendedTemplate with all data
320-
console.log('317 patternlab.js rendering', pattern.patternPartial, pattern.extendedTemplate, pattern.template);
321320
const patternPartialPromise = render(pattern, allData, this.partials);
322321

323322
///////////////
@@ -370,8 +369,6 @@ module.exports = class PatternLab {
370369

371370
return Promise.all([headPromise, patternPartialPromise, footerPartialPromise]).then(intermediateResults => {
372371

373-
console.log('!!!!', 369, intermediateResults[1])
374-
375372
// retrieve results of promises
376373
const headHTML = intermediateResults[0]; //headPromise
377374
pattern.patternPartialCode = intermediateResults[1]; //patternPartialPromise

core/lib/ui_builder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,13 +555,13 @@ const ui_builder = function () {
555555
});
556556

557557
return Promise.all(subTypePromises).catch(reason => {
558-
console.log(625, reason);
558+
console.log(reason);
559559
logger.error('Error during buildViewAllPages');
560560
});
561561
});
562562

563563
return Promise.all(allPatternTypePromises).catch(reason => {
564-
console.log(636, reason);
564+
console.log(reason);
565565
logger.error('Error during buildViewAllPages');
566566
});
567567
}

0 commit comments

Comments
 (0)