Fix logs 45/254845/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 10 Mar 2021 03:57:31 +0000 (12:57 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 10 Mar 2021 03:57:31 +0000 (12:57 +0900)
- Changes log level to warning
- Adds logs for debugging

Change-Id: I81f2252c475a4d50f632397e032122abd436c84e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/src/launchpad.c
src/launchpad-process-pool/src/launchpad_memory_monitor.c

index 72f114f..d035eb2 100644 (file)
@@ -250,7 +250,7 @@ static gboolean __handle_queuing_slots(gpointer data)
                        __handle_idle_checker, cpc);
        __sequencer.running_cpc = cpc;
 
-       _D("[__SEQUENCER__] Add idle checker. Type(%d)", cpc->type);
+       _W("[__SEQUENCER__] Add idle checker. Type(%d)", cpc->type);
 
        return G_SOURCE_CONTINUE;
 }
@@ -2143,6 +2143,7 @@ static bool __handle_launch_event(int fd, io_condition_e cond, void *data)
                goto end;
        }
 
+       _W("cmd(%d), caller(%d)", pkt->cmd, cr.pid);
        if (cr.uid >= REGULAR_UID_MIN) {
                if (__check_caller_by_pid(cr.pid) < 0) {
                        _E("Invalid caller pid");
@@ -2569,6 +2570,7 @@ static bool __on_directory_create(const char *event_name, uint32_t mask,
        }
 
        if (!strcmp(event_name, LOADERS_PATH)) {
+               _W("%s is created", LOADERS_PATH);
                __init_app_defined_loader_monitor();
                return false;
        }
@@ -2593,6 +2595,7 @@ static bool __on_file_change(const char *event_name, uint32_t mask,
        if (ext == NULL || strcmp(ext, ".loader") != 0)
                return true;
 
+       _W("event_name(%s), mask(%u)", event_name, mask);
        if (mask & IN_CREATE) {
                snprintf(buf, sizeof(buf), "%s/%s",
                                APP_DEFINED_LOADER_INFO_PATH, event_name);
index bc99ec1..5bd52ab 100644 (file)
@@ -95,7 +95,7 @@ bool _memory_monitor_is_low_memory(void)
 
        _proc_get_mem_used_ratio(&mem_used_ratio);
 
-       _D("previous used ratio(%u), current used ratio(%u)",
+       _W("previous used ratio(%u), current used ratio(%u)",
                        __monitor.prev_used_ratio, mem_used_ratio);
 
        __monitor.prev_used_ratio = mem_used_ratio;