Remove debug logs in release build.
[platform/core/security/vasum.git] / tests / unit_tests / log / ut-logger.cpp
index 36f52e3..9201f8f 100644 (file)
@@ -176,6 +176,7 @@ BOOST_AUTO_TEST_CASE(LogsLevelInfo)
     BOOST_CHECK(tf.logContains("[TRACE]") == false);
 }
 
+#if !defined(NDEBUG)
 BOOST_AUTO_TEST_CASE(LogsLevelDebug)
 {
     TestLog tf(LogLevel::DEBUG);
@@ -199,6 +200,7 @@ BOOST_AUTO_TEST_CASE(LogsLevelTrace)
     BOOST_CHECK(tf.logContains("[DEBUG]") == true);
     BOOST_CHECK(tf.logContains("[TRACE]") == true);
 }
+#endif
 
 BOOST_AUTO_TEST_CASE(LoggerScope)
 {