summaryrefslogtreecommitdiff
path: root/src/appMain/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/appMain/main.cc')
-rw-r--r--src/appMain/main.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/appMain/main.cc b/src/appMain/main.cc
index 2c14bfa3b6..63e819d062 100644
--- a/src/appMain/main.cc
+++ b/src/appMain/main.cc
@@ -150,6 +150,11 @@ int32_t main(int32_t argc, char** argv) {
profile::Profile::instance()->config_file_name("smartDeviceLink.ini");
}
+ if (!profile::Profile::instance()->logs_enabled()) {
+ LOG4CXX_INFO(logger_, "Logging option is not enabled, disabling logger now");
+ DISABLE_LOGGER();
+ }
+
#ifdef __QNX__
if (profile::Profile::instance()->enable_policy()) {
if (!utils::System("./init_policy.sh").Execute(true)) {