summaryrefslogtreecommitdiffstats
path: root/src/librbd/ImageState.cc
diff options
context:
space:
mode:
authorJason Dillaman <dillaman@redhat.com>2016-01-05 18:29:13 +0100
committerJason Dillaman <dillaman@redhat.com>2016-01-05 18:29:13 +0100
commit5b065aae75992411f4f3f7b945e757eb4cda019e (patch)
tree1127a4521c6f4ab9f8e2f67d87d0c3a1acc7d581 /src/librbd/ImageState.cc
parentRevert "rgw: use smart pointer for C_Reinitwatch" (diff)
downloadceph-5b065aae75992411f4f3f7b945e757eb4cda019e.tar.xz
ceph-5b065aae75992411f4f3f7b945e757eb4cda019e.zip
librbd: reduce verbosity of common error condition logging
Fixes: #14234 Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Diffstat (limited to 'src/librbd/ImageState.cc')
-rw-r--r--src/librbd/ImageState.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librbd/ImageState.cc b/src/librbd/ImageState.cc
index 10fd9765253..1bf628eb2b2 100644
--- a/src/librbd/ImageState.cc
+++ b/src/librbd/ImageState.cc
@@ -273,7 +273,7 @@ void ImageState<I>::handle_open(int r) {
CephContext *cct = m_image_ctx->cct;
ldout(cct, 10) << this << " " << __func__ << ": r=" << r << dendl;
- if (r < 0) {
+ if (r < 0 && r != -ENOENT) {
lderr(cct) << "failed to open image: " << cpp_strerror(r) << dendl;
}
@@ -376,7 +376,7 @@ void ImageState<I>::handle_set_snap(int r) {
CephContext *cct = m_image_ctx->cct;
ldout(cct, 10) << this << " " << __func__ << " r=" << r << dendl;
- if (r < 0) {
+ if (r < 0 && r != -ENOENT) {
lderr(cct) << "failed to set snapshot: " << cpp_strerror(r) << dendl;
}