summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-02-15 09:25:24 -0800
committerYehuda Sadeh <yehuda@inktank.com>2013-02-25 15:00:06 -0800
commitaaac49b8ef5bf977d1f91b8009f200994499340e (patch)
treedcf66937b32dcf83369711c05d8b90b5fcd4a75e
parentfdd368cb164b4edcb625df5d98df5fc9ba69a796 (diff)
downloadceph-aaac49b8ef5bf977d1f91b8009f200994499340e.tar.gz
rgw: derr -> lderr
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-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 1da7bddbc10..3578bc8b54e 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();