c_api.cc: Bring back silent argument (#1794)
In ecb3a271be the silent argument
in XGDMatrixCreateFromFile of c_api.cc was always overridden to
be false. This disabled the functionality to hide log messages.
This commit reverts that part to enable the hiding of log messages.
This commit is contained in:
@@ -207,7 +207,7 @@ int XGDMatrixCreateFromFile(const char *fname,
|
||||
LOG(CONSOLE) << "XGBoost distributed mode detected, "
|
||||
<< "will split data among workers";
|
||||
}
|
||||
*out = new std::shared_ptr<DMatrix>(DMatrix::Load(fname, false, true));
|
||||
*out = new std::shared_ptr<DMatrix>(DMatrix::Load(fname, silent != 0, true));
|
||||
API_END();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user