From: Sameer Prakash Pradhan Date: Fri, 21 Jun 2019 09:38:44 +0000 (+0530) Subject: Adding extra logs X-Git-Tag: accepted/tizen/unified/20190624.075223^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fpim%2Fcontacts-service.git;a=commitdiff_plain;h=a7a93917d8bb98f944368107bc27c19b568d2708 Adding extra logs Signed-off-by: Sameer Prakash Pradhan Change-Id: Idcb1d0ce35f3fa7339a214b667d851438fc22f1b --- diff --git a/client/ctsvc_client_ipc.c b/client/ctsvc_client_ipc.c index eee45d0..a69195c 100644 --- a/client/ctsvc_client_ipc.c +++ b/client/ctsvc_client_ipc.c @@ -100,6 +100,7 @@ static int _ctsvc_ipc_create(pims_ipc_h *p_ipc) snprintf(sock_file, sizeof(sock_file), CTSVC_SOCK_PATH"/.%s", uid, CTSVC_IPC_SERVICE); + WARN("pims-ipc-create() sock_file[%s], uid[%d]", sock_file, uid); pims_ipc_h ipc = pims_ipc_create(sock_file); if (NULL == ipc) { /* LCOV_EXCL_START */ @@ -208,6 +209,7 @@ int ctsvc_ipc_connect(contacts_h contact, unsigned int handle_id) return CONTACTS_ERROR_OUT_OF_MEMORY; /* LCOV_EXCL_STOP */ } + WARN("ctsvc_ipc_connect handle_id = %d ", handle_id); ret = _ctsvc_ipc_create(&(ipc_data->ipc)); if (CONTACTS_ERROR_NONE != ret) { _ctsvc_ipc_data_free(ipc_data); diff --git a/client/ctsvc_client_service_helper.c b/client/ctsvc_client_service_helper.c index af207f5..fa9d491 100644 --- a/client/ctsvc_client_service_helper.c +++ b/client/ctsvc_client_service_helper.c @@ -93,6 +93,7 @@ int ctsvc_client_connect(contacts_h contact) ctsvc_mutex_lock(CTS_MUTEX_CONNECTION); if (0 == base->connection_count) { + WARN("Contacts service connect(%d)", _ctsvc_connection ); ret = ctsvc_ipc_connect(contact, ctsvc_client_get_pid()); if (ret != CONTACTS_ERROR_NONE) { /* LCOV_EXCL_START */ diff --git a/common/ctsvc_socket.c b/common/ctsvc_socket.c index d4b23cc..189285d 100644 --- a/common/ctsvc_socket.c +++ b/common/ctsvc_socket.c @@ -38,6 +38,7 @@ int ctsvc_socket_init(void) struct sockaddr_un caddr; uid_t uid = getuid(); + WARN("ctsvc_socket_init: socket ref count : %d", __ctsvc_conn_refcnt); if (0 < __ctsvc_conn_refcnt) { __ctsvc_conn_refcnt++; return CONTACTS_ERROR_NONE; diff --git a/server/ctsvc_server_socket.c b/server/ctsvc_server_socket.c index 51ab63e..fa90a18 100644 --- a/server/ctsvc_server_socket.c +++ b/server/ctsvc_server_socket.c @@ -525,7 +525,7 @@ int ctsvc_server_socket_init(void) ret = chown(sock_file, getuid(), CTS_SECURITY_FILE_GROUP); if (0 != ret) /* LCOV_EXCL_START */ - ERR("chown(%s) Fail(%d)", sock_file, ret); + ERR("chown(%s) Fail(%d) errno = %d", sock_file, ret, errno); /* LCOV_EXCL_STOP */ ret = chmod(sock_file, CTS_SECURITY_DEFAULT_PERMISSION);