summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rgw/rgw_rados.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc
index 177a5a1be55..aac634b3c32 100644
--- a/src/rgw/rgw_rados.cc
+++ b/src/rgw/rgw_rados.cc
@@ -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();