Change the level of log about instance number and idle memory to warning 07/211307/2 accepted/tizen/unified/20190805.042856 submit/tizen/20190802.063806
authorYoungHun Kim <yh8004.kim@samsung.com>
Thu, 1 Aug 2019 09:01:00 +0000 (18:01 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Thu, 1 Aug 2019 10:49:34 +0000 (19:49 +0900)
Change-Id: Ia98a9162e3b5668c9745a2a5623fb580a40b3707

packaging/mused.spec
server/src/muse_server_connection.c
server/src/muse_server_private.c

index 369cd46..ffd1250 100644 (file)
@@ -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
index e7b8eae..a908884 100644 (file)
@@ -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);
index 95edcec..1c67a0a 100644 (file)
@@ -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();