Respect desired logLevel
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:
Родитель
6fcb3a454b
Коммит
f4d89182bd
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче