From 08eb22844a6edaac5e3d899fb444fccd360d7c2c Mon Sep 17 00:00:00 2001 From: jeffin143 Date: Mon, 15 Jun 2020 21:30:33 +0530 Subject: [PATCH] Diable Log by default --- src/mlpack/tests/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mlpack/tests/main.cpp b/src/mlpack/tests/main.cpp index 4e5c125475..0ae410c452 100644 --- a/src/mlpack/tests/main.cpp +++ b/src/mlpack/tests/main.cpp @@ -25,7 +25,14 @@ int main(int argc, char** argv) //size_t seed = std::time(NULL); //srand((unsigned int) seed); //arma::arma_rng::set_seed(seed); + #ifndef TEST_VERBOSE + #ifdef DEBUG + mlpack::Log::Debug.ignoreInput = true; + #endif + mlpack::Log::Info.ignoreInput = true; + mlpack::Log::Warn.ignoreInput = true; + #endif std::cout << "run test using Catch2" << std::endl;