Adding back off and json special cases.

This commit is contained in:
Martin Strobel 2018-03-08 14:14:41 -08:00
Родитель 245267deb2
Коммит 7f0bb8594a
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -247,7 +247,9 @@ exports.generateUml = function generateUml(specPath, outputDir, options) {
exports.updateEndResultOfSingleValidation = function updateEndResultOfSingleValidation(validator) {
if (validator.specValidationResult.validityStatus) {
log.info('No Errors were found.');
if (!(log.consoleLogLevel === 'json' || log.consoleLogLevel === 'off')) {
log.info('No Errors were found.');
}
}
if (!validator.specValidationResult.validityStatus) {
process.exitCode = 1;