]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: reduce unnecessary logging for periodic start image replayer
authorJason Dillaman <dillaman@redhat.com>
Wed, 9 May 2018 14:00:12 +0000 (10:00 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sat, 19 May 2018 12:16:50 +0000 (08:16 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit d7cb5db188faf133904ec4532620bbd210cb60e5)

src/tools/rbd_mirror/InstanceReplayer.cc

index b4e12aa6fea4a44815decab952cc55c6f7aa74b8..32ac77e4330c55012580ef4bcdf6a205cee95c72 100644 (file)
@@ -295,12 +295,11 @@ void InstanceReplayer<I>::start_image_replayer(
   assert(m_lock.is_locked());
 
   std::string global_image_id = image_replayer->get_global_image_id();
-  dout(10) << "global_image_id=" << global_image_id << dendl;
-
   if (!image_replayer->is_stopped()) {
     return;
   } else if (image_replayer->is_blacklisted()) {
-    derr << "blacklisted detected during image replay" << dendl;
+    derr << "global_image_id=" << global_image_id << ": blacklisted detected "
+         << "during image replay" << dendl;
     return;
   } else if (image_replayer->is_finished()) {
     // TODO temporary until policy integrated
@@ -313,6 +312,7 @@ void InstanceReplayer<I>::start_image_replayer(
     return;
   }
 
+  dout(10) << "global_image_id=" << global_image_id << dendl;
   image_replayer->start(nullptr, false);
 }