adjust log level
[platform/core/messaging/msg-service.git] / utils / MsgUtilFunction.cpp
index d1fbc34..0174373 100755 (executable)
@@ -65,7 +65,7 @@ static int dpm_policy_enable[] = {
 static int phonenumberMinMatchDigit = -1;
 #endif
 
-pthread_mutex_t mx;
+pthread_mutex_t mx = PTHREAD_MUTEX_INITIALIZER;
 
 /*==================================================================================================
                                      FUNCTION IMPLEMENTATION
@@ -1272,7 +1272,7 @@ void* _msg_launch_app(void *data)
                msg_launch_app_data *ad = (msg_launch_app_data *)data;
                int ret = aul_launch_app_for_uid(ad->app_id, ad->bundle_data, msg_get_login_user());
                if (ret <= 0) {
-                       MSG_DEBUG("aul_launch_app_for_uid() is failed : %d", ret);
+                       MSG_ERR("aul_launch_app_for_uid() is failed : %d", ret);
                }
 
                g_free(ad->app_id);
@@ -1297,7 +1297,7 @@ msg_error_t msg_launch_app(const char *app_id, bundle *bundle_data)
        pthread_t thd;
 
        if (pthread_create(&thd, NULL, &_msg_launch_app, data) < 0) {
-               MSG_DEBUG("pthread_create() error");
+               MSG_ERR("pthread_create() error");
        }
 
        pthread_detach(thd);
@@ -1309,7 +1309,7 @@ msg_error_t msg_aul_svc_set_operation(bundle *bundle_data, const char *operation
 {
        int ret = aul_svc_set_operation(bundle_data, operation);
        if (ret < 0) {
-               MSG_DEBUG("aul_svc_set_operation() is failed : %d", ret);
+               MSG_ERR("aul_svc_set_operation() is failed : %d", ret);
                return MSG_ERR_UNKNOWN;
        }
 
@@ -1321,7 +1321,7 @@ msg_error_t msg_aul_svc_set_uri(bundle *bundle_data, char *uri)
 {
        int ret = aul_svc_set_uri(bundle_data, uri);
        if (ret < 0) {
-               MSG_DEBUG("aul_svc_set_uri() is failed : %d", ret);
+               MSG_ERR("aul_svc_set_uri() is failed : %d", ret);
                return MSG_ERR_UNKNOWN;
        }
 
@@ -1344,7 +1344,7 @@ bool msg_check_dpm_policy(int type)
 
 void msg_syspopup_message(bool is_sending)
 {
-       MSG_DEBUG("popup toast for dpm restriction. is_sending [%d]", is_sending);
+       MSG_INFO("popup toast for dpm restriction. is_sending [%d]", is_sending);
 
        GDBusConnection *connection = NULL;
        GDBusProxy *dbus_proxy = NULL;