Remove unnecessary code 85/201985/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 21 Mar 2019 10:43:14 +0000 (19:43 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 21 Mar 2019 11:55:21 +0000 (20:55 +0900)
getting env for "APP_INSTALLER_LOG" will always return null

Change-Id: I76b26ef3ae8c43afdbe3a62332fb9217898d3975
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/manifest_parser/utils/logging.h

index e5f3e5c413251bb37e9656fe4f61da439496ce80..fe4cce3576bf2c8e3ad796133eaf86624e3af4af 100644 (file)
@@ -73,11 +73,8 @@ class LogCatcher {
     dlog_print(LogLevelToPriority(level_), tag_.c_str(), "%s",
         Escape(str.str()).c_str());
 
-    static const char* app_installer_log = getenv("APP_INSTALLERS_LOG");
-    if (level_ == LogLevel::LOG_ERROR || app_installer_log != nullptr) {
-      std::cerr << str.str()
-        << std::endl;
-    }
+    if (level_ == LogLevel::LOG_ERROR)
+      std::cerr << str.str() << std::endl;
   }
  private:
   // Since LogCatcher passes input to dlog_print(), the input which contains