[Code]: downgrade the log level of error message from subprocess (#42925) (#43088)

This commit is contained in:
Fuyao Zhao 2019-08-12 18:53:20 +08:00 committed by GitHub
parent adbb6bee26
commit ffd11a5b6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,10 @@ export class Logger implements VsLogger {
colors: process.stdout.isTTY,
});
}
this.server.log([...this.baseTags, 'error', 'stderr'], msg);
if (this.verbose) {
this.server.log([...this.baseTags, 'error', 'stderr'], msg);
} else {
this.server.log([...this.baseTags, 'debug', 'stderr'], msg);
}
}
}