Skip to content

Commit bbacfca

Browse files
committed
fix(logs): Change to logLevel instead of debug
1 parent 63fbede commit bbacfca

8 files changed

+23
-23
lines changed

test/lineage_hunter_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function createBasePatternLabObject() {
4949
};
5050
pl.data = {};
5151
pl.data.link = {};
52-
pl.config.debug = 'quiet';
52+
pl.config.logLevel = 'quiet';
5353
pl.patterns = [];
5454
pl.partials = {};
5555
pl.patternGroups = {};

test/list_item_hunter_tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function createFakePatternLab(customProps) {
6666
"partials": []
6767
},
6868
"config": {
69-
"debug": 'quiet',
69+
"logLevel": 'quiet',
7070
"paths": {
7171
"source": {
7272
"patterns": "./test/files/_patterns"
@@ -344,7 +344,7 @@ tap.test('process_list_item_partials - correctly ignores bookended partials with
344344
pl.config = {};
345345
pl.data = {};
346346
pl.data.link = {};
347-
pl.config.debug = 'quiet';
347+
pl.config.logLevel = 'quiet';
348348
pl.patterns = [];
349349
pl.partials = {};
350350
pl.config.patterns = { source: patterns_dir };

test/parameter_hunter_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function patternlabClosure() {
5656
}
5757
],
5858
config: {
59-
debug: 'quiet'
59+
logLevel: 'quiet'
6060
},
6161
data: {
6262
description: 'Not a quote from a smart man',

test/pattern_assembler_tests.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ tap.test('processPatternRecursive - correctly replaces all stylemodifiers when m
9393
};
9494
pl.data = {};
9595
pl.data.link = {};
96-
pl.config.debug = 'quiet';
96+
pl.config.logLevel = 'quiet';
9797
pl.patterns = [];
9898
pl.partials = {};
9999

@@ -137,7 +137,7 @@ tap.test('processPatternRecursive - correctly replaces multiple stylemodifier cl
137137
};
138138
pl.data = {};
139139
pl.data.link = {};
140-
pl.config.debug = 'quiet';
140+
pl.config.logLevel = 'quiet';
141141
pl.patterns = [];
142142
pl.partials = {};
143143

@@ -182,7 +182,7 @@ tap.test('processPatternRecursive - correctly ignores a partial without a style
182182
};
183183
pl.data = {};
184184
pl.data.link = {};
185-
pl.config.debug = 'quiet';
185+
pl.config.logLevel = 'quiet';
186186
pl.patterns = [];
187187
pl.partials = {};
188188

@@ -225,7 +225,7 @@ tap.test('processPatternRecursive - correctly ignores bookended partials without
225225
};
226226
pl.data = {};
227227
pl.data.link = {};
228-
pl.config.debug = 'quiet';
228+
pl.config.logLevel = 'quiet';
229229
pl.patterns = [];
230230
pl.partials = {};
231231

@@ -269,7 +269,7 @@ tap.test('processPatternRecursive - correctly ignores a partial without a style
269269
};
270270
pl.data = {};
271271
pl.data.link = {};
272-
pl.config.debug = 'quiet';
272+
pl.config.logLevel = 'quiet';
273273
pl.patterns = [];
274274
pl.partials = {};
275275

@@ -314,7 +314,7 @@ tap.test('processPatternRecursive - correctly ignores bookended partials without
314314
};
315315
pl.data = {};
316316
pl.data.link = {};
317-
pl.config.debug = 'quiet';
317+
pl.config.logLevel = 'quiet';
318318
pl.patterns = [];
319319
pl.partials = {};
320320

@@ -359,7 +359,7 @@ tap.test('processPatternRecursive - does not pollute previous patterns when a la
359359
};
360360
pl.data = {};
361361
pl.data.link = {};
362-
pl.config.debug = 'quiet';
362+
pl.config.logLevel = 'quiet';
363363
pl.patterns = [];
364364
pl.partials = {};
365365

@@ -413,7 +413,7 @@ tap.test('processPatternRecursive - ensure deep-nesting works', function(test) {
413413
};
414414
pl.data = {};
415415
pl.data.link = {};
416-
pl.config.debug = 'quiet';
416+
pl.config.logLevel = 'quiet';
417417
pl.patterns = [];
418418
pl.partials = {};
419419

@@ -611,7 +611,7 @@ tap.test('addPattern - adds pattern extended template to patternlab partial obje
611611
patternlab.patterns = [];
612612
patternlab.partials = {};
613613
patternlab.data = {link: {}};
614-
patternlab.config = {debug: 'quiet'};
614+
patternlab.config = {logLevel: 'quiet'};
615615
patternlab.config.outputFileSuffixes = {rendered: ''};
616616

617617
var pattern = new Pattern('00-test/01-bar.mustache');
@@ -635,7 +635,7 @@ tap.test('addPattern - adds pattern template to patternlab partial object if ext
635635
patternlab.patterns = [];
636636
patternlab.partials = {};
637637
patternlab.data = {link: {}};
638-
patternlab.config = { debug: 'quiet' };
638+
patternlab.config = { logLevel: 'quiet' };
639639
patternlab.config.outputFileSuffixes = {rendered : ''};
640640

641641
var pattern = new Pattern('00-test/01-bar.mustache');
@@ -699,7 +699,7 @@ tap.test('markModifiedPatterns - finds patterns when modification date is missin
699699
var patternlab = emptyPatternLab();
700700
patternlab.partials = {};
701701
patternlab.data = {link: {}};
702-
patternlab.config = { debug: 'quiet' };
702+
patternlab.config = { logLevel: 'quiet' };
703703
patternlab.config.outputFileSuffixes = {rendered : ''};
704704

705705
var pattern = new Pattern('00-test/01-bar.mustache');
@@ -720,7 +720,7 @@ tap.test('markModifiedPatterns - finds patterns via compile state', function(tes
720720
var patternlab = emptyPatternLab();
721721
patternlab.partials = {};
722722
patternlab.data = {link: {}};
723-
patternlab.config = { debug: 'quiet' };
723+
patternlab.config = { logLevel: 'quiet' };
724724
patternlab.config.outputFileSuffixes = {rendered : ''};
725725

726726
var pattern = new Pattern('00-test/01-bar.mustache');

test/pseudopattern_hunter_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function stubPatternlab() {
3333
};
3434
pl.data = {};
3535
pl.data.link = {};
36-
pl.config.debug = 'quiet';
36+
pl.config.logLevel = 'quiet';
3737
pl.patterns = [];
3838
pl.partials = {};
3939
pl.config.patternStates = {};

test/style_modifier_hunter_tests.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tap.test('uses the partial stylemodifer to modify the patterns extendedTemplate'
99
var pl = {};
1010
pl.partials = {};
1111
pl.config = {};
12-
pl.config.debug = 'quiet';
12+
pl.config.logLevel = 'quiet';
1313

1414
var pattern = {
1515
extendedTemplate: '<div class="foo {{styleModifier}}"></div>'
@@ -30,7 +30,7 @@ tap.test('replaces style modifiers with spaces in the syntax', function(test){
3030
var pl = {};
3131
pl.partials = {};
3232
pl.config = {};
33-
pl.config.debug = 'quiet';
33+
pl.config.logLevel = 'quiet';
3434

3535
var pattern = {
3636
extendedTemplate: '<div class="foo {{ styleModifier }}"></div>'
@@ -51,7 +51,7 @@ tap.test('replaces multiple style modifiers', function(test){
5151
var pl = {};
5252
pl.partials = {};
5353
pl.config = {};
54-
pl.config.debug = 'quiet';
54+
pl.config.logLevel = 'quiet';
5555

5656
var pattern = {
5757
extendedTemplate: '<div class="foo {{ styleModifier }}"></div>'
@@ -72,7 +72,7 @@ tap.test('does not alter pattern extendedTemplate if styleModifier not found in
7272
var pl = {};
7373
pl.partials = {};
7474
pl.config = {};
75-
pl.config.debug = 'quiet';
75+
pl.config.logLevel = 'quiet';
7676

7777
var pattern = {
7878
extendedTemplate: '<div class="foo {{styleModifier}}"></div>'

test/ui_builder_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function createFakePatternLab(customProps) {
4242
}
4343
},
4444
styleGuideExcludes: [ 'templates' ],
45-
debug: 'quiet',
45+
logLevel: 'quiet',
4646
outputFileSuffixes: {
4747
rendered: '.rendered',
4848
rawTemplate: '',

test/util/patternlab-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"defaultPattern": "all",
3737
"ignored-extensions" : ["scss", "DS_Store", "less"],
3838
"ignored-directories" : ["scss"],
39-
"debug": "quiet",
39+
"logLevel": "quiet",
4040
"ishControlsHide": {
4141
"s": false,
4242
"m": false,

0 commit comments

Comments
 (0)