Despite setting the consoleLogLevel to 'error' here:
32610853cf/test/semantic.js (L19)

A lot of extra lines are being output in CI right now, as seen here:
https://travis-ci.org/Azure/azure-rest-api-specs/jobs/351021743#L694
This commit is contained in:
Martin Strobel 2018-03-08 13:45:10 -08:00
Родитель 6fcb3a454b
Коммит f4d89182bd
1 изменённых файлов: 1 добавлений и 8 удалений

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

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