Skip to content

Commit 94e307b

Browse files
author
Adam Rutland
committed
Fix breaking change for json output.
1 parent fa60e29 commit 94e307b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/vlocitycli.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,17 @@ VlocityCLI.prototype.runCLI = function(commands, success, error) {
196196

197197
self.isJsonCLI = self.optionOrProperty('json') || self.optionOrProperty('json-pretty') || self.optionOrProperty('json-test') || false;
198198

199+
200+
VlocityUtils.verboseLogging = self.optionOrProperty('verbose') || false;
201+
VlocityUtils.showLoggingStatements = !self.isJsonCLI || self.optionOrProperty('json-test');
202+
203+
199204
VlocityUtils.log('Vlocity Build v' + VERSION);
200205

201206
self.isJsonCLIPretty = self.optionOrProperty('json-pretty') || self.optionOrProperty('json-test') || false;
202207

203208
self.stack = self.optionOrProperty('stack');
204209

205-
VlocityUtils.verboseLogging = self.optionOrProperty('verbose') || false;
206-
VlocityUtils.showLoggingStatements = !self.isJsonCLI || self.optionOrProperty('json-test');
207-
208210
VlocityUtils.verbose('Verbose Logging Enabled');
209211
VlocityUtils.verbose('Commands', commands);
210212

0 commit comments

Comments
 (0)