]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Add extra debug to output the stats when we are selecting a perticular stats version... wip_tentacle_stat_mismatch_fix_extra_debug
authorJon <jonathan.bailey1@ibm.com>
Mon, 6 Oct 2025 10:33:05 +0000 (11:33 +0100)
committerJon <jonathan.bailey1@ibm.com>
Mon, 6 Oct 2025 10:33:05 +0000 (11:33 +0100)
Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
src/osd/PeeringState.cc

index 0ee1274710be3aae495b9f148552ab2493e9b5e3..72e7b02f8fc86fd520caef5e63f090cfa3b153d5 100644 (file)
@@ -3515,13 +3515,29 @@ void PeeringState::proc_master_log(
                    << " (wanted last update: " << olog.head
                    << ", stats last update: " << stats_last_update[shard]
                    << ", shard last update: " << my_info.last_update << ")."
-                   << dendl;
+                   << " Stats: ";
+
+        std::unique_ptr<Formatter> f(Formatter::create("json"));
+        f->open_object_section("stats");
+        my_info.stats.dump(f.get());
+        f->close_section();
+
+        f->flush(*_dout);
+        *_dout << dendl;
       } else {
         psdout(20) << "not using stats for " << shard
                    << " (wanted last update: " << olog.head
                    << ", stats last update: " << stats_last_update[shard]
                    << ", shard last update: " << my_info.last_update << ")."
-                   << dendl;
+                   << " Stats: ";
+
+        std::unique_ptr<Formatter> f(Formatter::create("json"));
+        f->open_object_section("stats");
+        my_info.stats.dump(f.get());
+        f->close_section();
+
+        f->flush(*_dout);
+        *_dout << dendl;
       }
     }
   }