From 97371ff7e5e12f9c23eba12190ec807008180de5 Mon Sep 17 00:00:00 2001 From: AbdealiJK Date: Mon, 21 Nov 2016 11:34:36 +0530 Subject: [PATCH] c_api.cc: Bring back silent argument (#1794) In ecb3a271bed151252fb048528ce5a90ad75bb68f 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. --- src/c_api/c_api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c_api/c_api.cc b/src/c_api/c_api.cc index 4b7092fa2..6a68226d8 100644 --- a/src/c_api/c_api.cc +++ b/src/c_api/c_api.cc @@ -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::Load(fname, false, true)); + *out = new std::shared_ptr(DMatrix::Load(fname, silent != 0, true)); API_END(); }