Remove some logs 88/255988/2
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 26 Mar 2021 05:50:47 +0000 (14:50 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 26 Mar 2021 05:59:02 +0000 (14:59 +0900)
pkginfo-server's log is too much.
This patch remove some logs regarding to socket connect.

Change-Id: Ic1b06bd62cab34a679d387e283acaa4963bbd9e9
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/common/database/db_handle_provider.cc
src/common/socket/abstract_socket.cc
src/server/runner.cc

index 828993c..6182b59 100644 (file)
@@ -196,7 +196,6 @@ sqlite3* DBHandleProvider::GetMemoryDBHandle(const std::string& filedb_path,
 
   sqlite3_backup_step(backup, -1);
   sqlite3_backup_finish(backup);
-  LOGD("Set memory DB(%s)", memorydb_path.c_str());
   sqlite3_close_v2(filedb);
   return memorydb;
 }
index 4ec81df..765c80e 100644 (file)
@@ -130,10 +130,9 @@ int AbstractSocket::Create() {
 }
 
 void AbstractSocket::Disconnect() {
-  if (fd_ > 0) {
-    LOGW("Close fd(%d)", fd_);
+  if (fd_ > 0)
     close(fd_);
-  }
+
   fd_ = -1;
 }
 
index 8d7f3ae..bb84747 100644 (file)
@@ -61,8 +61,6 @@ int Runner::FdErrorHandler(int fd, GIOCondition cond, void* user_data) {
   if (static_cast<int>(cond) & (G_IO_ERR | G_IO_HUP)) {
     auto it = runner->sid_map_.find(fd);
     if (it != runner->sid_map_.end()) {
-      LOGW("Socket disconnect. fd(%d) condition(%d)",
-          fd, static_cast<int>(cond));
       g_source_remove(it->second);
       runner->sid_map_.erase(it);
     }