Remove silent parameter. (#5476)

This commit is contained in:
Jiaming Yuan
2020-04-03 08:03:26 +08:00
committed by GitHub
parent 29c6ad943a
commit d0b86c75d9
5 changed files with 2 additions and 16 deletions

View File

@@ -53,12 +53,6 @@ bool ConsoleLogger::ShouldLog(LogVerbosity verbosity) {
void ConsoleLogger::Configure(Args const& args) {
param_.UpdateAllowUnknown(args);
// Deprecated, but when trying to display deprecation message some R
// tests trying to catch stdout will fail.
if (param_.silent) {
global_verbosity_ = LogVerbosity::kSilent;
return;
}
switch (param_.verbosity) {
case 0:
global_verbosity_ = LogVerbosity::kSilent;