From: YoungHun Kim Date: Thu, 1 Aug 2019 09:01:00 +0000 (+0900) Subject: Change the level of log about instance number and idle memory to warning X-Git-Tag: accepted/tizen/unified/20190805.042856^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F07%2F211307%2F2;p=platform%2Fcore%2Fmultimedia%2Fmmsvc-core.git Change the level of log about instance number and idle memory to warning Change-Id: Ia98a9162e3b5668c9745a2a5623fb580a40b3707 --- diff --git a/packaging/mused.spec b/packaging/mused.spec index 369cd46..ffd1250 100644 --- a/packaging/mused.spec +++ b/packaging/mused.spec @@ -1,6 +1,6 @@ Name: mused Summary: A multimedia daemon -Version: 0.3.82 +Version: 0.3.83 Release: 0 Group: System/Libraries License: Apache-2.0 and BSD-3-Clause diff --git a/server/src/muse_server_connection.c b/server/src/muse_server_connection.c index e7b8eae..a908884 100644 --- a/server/src/muse_server_connection.c +++ b/server/src/muse_server_connection.c @@ -54,7 +54,7 @@ static void _ms_connection_module_instance_info(muse_module_h m, ms_connection_t strncat(pids, pid, MUSE_MSG_LEN_MAX - strlen(pids) - 1); } - SECURE_LOGI("total number of module = %d ( %s) - %s %p from pid %d %s client (count %d)", + LOGW("total number of module = %d ( %s) - %s %p from pid %d %s client (count %d)", len, pids, connection_cmd[cmd], m, m->pid, ms_config_get_host_name(m->idx), connection->instance_count[m->idx]); caution_instance = ms_config_get_caution_instance(m->idx); diff --git a/server/src/muse_server_private.c b/server/src/muse_server_private.c index 95edcec..1c67a0a 100644 --- a/server/src/muse_server_private.c +++ b/server/src/muse_server_private.c @@ -38,6 +38,11 @@ static gboolean (*job_functions[MUSE_CHANNEL_MAX]) ms_ipc_data_job_function }; +static const char *channel_name[MUSE_CHANNEL_MAX] = { + "msg", + "data" +}; + const char *UDS_files[MUSE_CHANNEL_MAX] = {MUSE_SOCK_FILE0, MUSE_SOCK_FILE1}; static muse_server_h muse_server; @@ -332,7 +337,7 @@ static gboolean _ms_connection_handler(GIOChannel *source, GIOCondition conditio return FALSE; } - LOGI("server : %d client [%d] : %d", server_sockfd, channel, client_sockfd); + LOGI("server : %d client [%s channel] : %d", server_sockfd, channel_name[channel], client_sockfd); pid = _ms_get_pid(client_sockfd); @@ -687,7 +692,7 @@ void ms_check_memory(int pid) used_pss = ms_system_get_memory_usage(pid); - LOGI("[%d] Proportional set size %d (KByte)", pid, used_pss); + LOGW("[%d] Proportional set size %d (KByte)", pid, used_pss); if (g_queue_is_empty(connection->instance_queue) && ms_is_server_ready()) { memory_threshold = ms_config_get_memory_threshold();