Separate debug log with info config
[platform/core/connectivity/stc-manager.git] / plugin / exception / stc-plugin-exception.c
old mode 100644 (file)
new mode 100755 (executable)
index 4769c3e..cdb47c4
@@ -99,7 +99,7 @@ static void __excn_hash_foreach_print(gpointer key, gpointer value,
        const char *process_name = key;
        const char *exe_type = value;
 
-       if (STC_DEBUG_LOG)
+       if (STC_DEBUG_LOG && STC_STAT_LOG)
                STC_LOGI("Process_name[%s] exe_type[%s]",
                        process_name, exe_type);
 }
@@ -258,7 +258,7 @@ int stc_plugin_exception_fill_list(void)
        table_exceptions_foreach(__insert_exception_cb, NULL);
        pkginfo_exceptions_foreach(__insert_exception_cb, NULL);
 
-       if (STC_DEBUG_LOG)
+       if (STC_DEBUG_LOG && STC_STAT_LOG)
                __excn_hash_printall();
 
        g_excns_timer_id = g_timeout_add_seconds(EXCNS_TIMER_INTERVAL,
@@ -273,7 +273,7 @@ int stc_plugin_exception_update_list(void)
        __remove_exception_appall();
        pkginfo_exceptions_foreach(__insert_exception_cb, NULL);
 
-       if (STC_DEBUG_LOG)
+       if (STC_DEBUG_LOG && STC_STAT_LOG)
                __excn_hash_printall();
 
        return STC_ERROR_NONE;