Adjust log messages 02/293802/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 5 Jun 2023 08:48:12 +0000 (08:48 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 5 Jun 2023 08:48:12 +0000 (08:48 +0000)
Some log level is changed to debug level from warning level.
And, wrong log message is fixed.

Change-Id: I40b340ad60974c8926a37a168e513f6880bf0331
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad-process-pool/dbus.cc
src/launchpad-process-pool/launchpad.cc
src/launchpad-process-pool/loader_context.cc
src/launchpad-process-pool/loader_manager.cc
src/launchpad-process-pool/memory_monitor.cc
src/launchpad-process-pool/process_pool.cc
src/launchpad-process-pool/signal_manager.cc
src/lib/launchpad-common/procfs.cc
src/lib/launchpad/launchpad_loader.cc
src/lib/launchpad/thread_control.cc

index d47c9512224dd7a7dbcfac545a296713ff0effb0..ef6b38cb89aabade395c9b84f6ea9eeb4a790fc3 100644 (file)
@@ -166,7 +166,7 @@ class DBusManager {
       return;
     }
 
-    _W("[DBUS] %s", args->GetLogMessage().c_str());
+    _D("[DBUS] %s", args->GetLogMessage().c_str());
   }
 
   void WorkerThread() {
index db621b0aa441e358425d35b54ab4664fd9d62920..39be7477f7e6b38352b1ddecda699d4e2853ac35 100644 (file)
@@ -587,7 +587,7 @@ void Launchpad::OnLoaderPrepared(LoaderContext* loader_context) {
 }
 
 void Launchpad::OnLoaderLaunched(LoaderContext* loader_context) {
-  _W("Loader is prepared. name(%s), pid(%d)",
+  _W("Loader is launched. name(%s), pid(%d)",
       loader_context->GetLoaderName().c_str(), loader_context->GetPid());
   if (!loader_context->IsPending())
     return;
index 9da3176e20e91dea610508904ad3947ba78eba5f..fbb8ddf201890e2822ca003feed7cab8ca69a7eb 100644 (file)
@@ -646,7 +646,7 @@ void LoaderContext::HandleLoaderClientEvent(int condition) {
 }
 
 void LoaderContext::OnIOEventReceived(int fd, int condition) {
-  _W("[DEBUG] fd(%d), condition(%d)", fd, condition);
+  _D("[DEBUG] fd(%d), condition(%d)", fd, condition);
   if (server_socket_.get() != nullptr && server_socket_->GetFd() == fd)
     HandleLoaderEvent();
   else if (client_socket_.get() != nullptr && client_socket_->GetFd() == fd)
index 7c6ed30870316f083214b1a42f0f8a96e9503b3f..7df3837f77f4867c92e122645d97c5d57970d454 100644 (file)
@@ -518,7 +518,7 @@ bool LoaderManager::OnIdleCheck(LoaderContext* context) {
 }
 
 void LoaderManager::OnLoaderLaunch(LoaderContext* context) {
-  _W("Loader(%s), type(%d), pid(%d)",
+  _D("Loader(%s), type(%d), pid(%d)",
       context->GetLoaderName().c_str(), context->GetType(), context->GetPid());
 
   if (!context->IsLaunchable())
index 04cf5f1fe0a86636fbea6792e404cb540e976989..ee6667ffba2e234a09c636769b3be29da9e07b40 100644 (file)
@@ -72,7 +72,7 @@ bool MemoryMonitor::IsLowMemory() {
 
   uint32_t usage = 0;
   Procfs::GetMemoryUsage(&usage);
-  _W("Previous used ratio: %u, current used ratio: %u",
+  _D("Previous used ratio: %u, current used ratio: %u",
       previous_usage_, usage);
   previous_usage_ = usage;
 
index df32ce6dff890ccc217015280a6031d0cfac2ca4..f8c010f0ca5593b837a553bac5104718b35427ca 100644 (file)
@@ -103,7 +103,7 @@ void ProcessPool::Process::Kill() {
 }
 
 void ProcessPool::OnExecution() {
-  _W("Candidate Process");
+  _D("Candidate Process");
   char** args = LaunchpadArgs::GetInst().GetArgs();
   size_t length = strlen(args[0]);
   memset(args[0], '\0', length);
index 8d273c2197b7b0bab39904231f96d4132dea34fd..ade60ef883e4c93d67ba290ee0ad1be33bc4af0f 100644 (file)
@@ -36,7 +36,7 @@ class GarbageCollector : public launchpad::Worker::Job {
   explicit GarbageCollector(pid_t pid) : pid_(pid) {}
 
   void Do() override {
-    _W("pid: %d", pid_);
+    _D("pid: %d", pid_);
     try {
       std::string path = "/run/aul/apps/" + std::to_string(getuid()) + "/" +
           std::to_string(pid_);
@@ -199,12 +199,12 @@ void SignalManager::HandleSigchld(pid_t pid) {
 }
 
 void SignalManager::OnSigchld(pid_t pid, int status) {
-  _W("pid: %d, status: %d", pid, status);
+  _D("pid: %d, status: %d", pid, status);
   HandleSigchld(pid);
 }
 
 void SignalManager::OnHydraSigchld(pid_t pid, int status) {
-  _W("pid: %d, status: %d", pid, status);
+  _D("pid: %d, status: %d", pid, status);
   HandleSigchld(pid);
 }
 
index eaf36056a86e6fa2ac4d6dd74d738a0c42849861..461b9dbcbdcadab0506bf88a30bfb7495674553a 100644 (file)
@@ -69,7 +69,6 @@ void Procfs::GetMemoryUsage(uint32_t* usage) {
     mem_available = mem_free + mem_cached;
 
   *usage = (mem_total - mem_available) * 100 / mem_total;
-  _D("usage: %u%%", *usage);
 }
 
 void Procfs::GetPssMemory(pid_t pid, uint64_t* mem_pss) {
index 3cd5f2a40ee24c169d2bd9a25b339702240bc88e..a776327b8c79ece091215cb922af2366ffce9dc9 100644 (file)
@@ -251,7 +251,7 @@ int LaunchpadLoader::OnLaunch(int argc, char** argv, AppInfo* app_info) {
 }
 
 void LaunchpadLoader::OnTerminate() {
-  _W("Terminating...");
+  _D("Terminating...");
   region_format_config_.reset();
   language_config_.reset();
 
index 62f6f26ca776e30908753562f0428097cb342e02..41b2ed1ceca1c91fd56c866172c2d0485cccc65a 100644 (file)
@@ -71,7 +71,7 @@ int GetThreadCountWithoutGmain(const std::vector<pid_t>& tasks) {
       // To avoid delay issue of calling usleep(), this function decreases
       // the count if the gmain threads exists.
       if (GetThreadName(tid) == "gmain") {
-        _W("%d is gmain thread", tid);
+        _D("%d is gmain thread", tid);
         count--;
       }
     }