adjust log level
[platform/core/messaging/msg-service.git] / manager / src / msg-manager.cpp
index 590c238..10d75d2 100644 (file)
@@ -50,7 +50,7 @@ extern "C"
 msg_handle_t msg_handle = NULL;
 cm_client_h cm_handle = NULL;
 
-pthread_mutex_t mx;
+pthread_mutex_t mx = PTHREAD_MUTEX_INITIALIZER;
 static int job_cnt = 0;
 static bool terminated = false;
 
@@ -93,11 +93,11 @@ bool service_app_create(void *data)
                        if (msg_err != MSG_SUCCESS)
                                MSG_MGR_ERR("msg_open_msg_handle() failed [%d]", msg_err);
                        else
-                               MSG_MGR_DEBUG("msg_open_msg_handle() success");
+                               MSG_MGR_INFO("msg_open_msg_handle() success");
 
                        break;
                } else {
-                       MSG_MGR_DEBUG("msg-server is not ready.");
+                       MSG_MGR_INFO("msg-server is not ready.");
                        sleep(1);
                }
        }
@@ -755,7 +755,7 @@ void service_app_control(app_control_h app_control, void *data)
                if (g_strcmp0(operation, APP_CONTROL_OPERATION_DEFAULT) == 0) {
                        ret = app_control_get_extra_data(app_control, "cmd", &cmd);
                        if (ret == APP_CONTROL_ERROR_NONE && cmd) {
-                               MSG_MGR_DEBUG("cmd [%s]", cmd);
+                               MSG_MGR_INFO("cmd [%s]", cmd);
 
                                if (g_strcmp0(cmd, "incoming_msg") == 0) {
                                        _incoming_msg_func(app_control);