Remove printing error log of Delete() method 96/260196/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 22 Jun 2021 01:55:05 +0000 (10:55 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 22 Jun 2021 01:55:40 +0000 (10:55 +0900)
To reduce unnecessary error log prints, printing error log of Delete()
method is removed.

Change-Id: Ibe7f453b5f676adcb6dc1b2c5498e69ccfdf6461
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/bundle_cpp.cc

index 20c34db..b8d254b 100644 (file)
@@ -253,10 +253,7 @@ int Bundle::Add(const std::string& key, const std::vector<unsigned char>& val) {
 }
 
 int Bundle::Delete(const std::string& key) {
-  int ret = bundle_del(impl_->handle_, key.c_str());
-  if (ret != BUNDLE_ERROR_NONE)
-    LOGE("Delete fail key(%s), ret(%d)", key.c_str(), ret);
-  return ret;
+  return bundle_del(impl_->handle_, key.c_str());
 }
 
 std::string Bundle::GetString(const std::string& key) const {