]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: derr -> lderr
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 15 Feb 2013 17:25:24 +0000 (09:25 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 8 May 2013 17:54:53 +0000 (10:54 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_rados.cc

index 110d4d599a2206532676e26f10e415ea984cda9d..11c11bba4c09fd283b3d78681b3f12165c9d76ef 100644 (file)
@@ -169,7 +169,7 @@ int RGWRegion::init(CephContext *_cct, RGWRados *_store, bool create_region)
       if (r < 0)
        return r;
     } else if (r < 0) {
-      derr << "failed reading default region info: " << cpp_strerror(-r) << dendl;
+      lderr(cct) << "failed reading default region info: " << cpp_strerror(-r) << dendl;
       return r;
     }
   }
@@ -183,8 +183,10 @@ int RGWRegion::init(CephContext *_cct, RGWRados *_store, bool create_region)
   if (ret == -ENOENT && create_region) {
     return init_default();
   }
-  if (ret < 0)
+  if (ret < 0) {
+    lderr(cct) << "failed reading region info from " << pool << ":" << oid << ": " << cpp_strerror(-ret) << dendl;
     return ret;
+  }
 
   try {
     bufferlist::iterator iter = bl.begin();