diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-02-15 09:25:24 -0800 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2013-03-22 11:23:57 -0700 |
commit | 960d765e5e9e66e028ceb611d3811dc8d7cfccea (patch) | |
tree | f2c3ef34956f757cdbb3a686f8cc7b486b7cd420 | |
parent | fca67fe3f51a49c51ebd39986f65a45376b3bef4 (diff) | |
download | ceph-960d765e5e9e66e028ceb611d3811dc8d7cfccea.tar.gz |
rgw: derr -> lderr
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r-- | src/rgw/rgw_rados.cc | 6 |
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(); |