From da0aa5f20db90ff87177321a413d0d9e3b1684f1 Mon Sep 17 00:00:00 2001 From: Alex Wu Date: Sun, 28 Mar 2021 22:09:50 -0400 Subject: [PATCH] crush/CrushLocation: do not print logging message in constructor do not use logging facility in constructor, as CephContext::_log is set after CephContext::crush_location is created in constructor of CephContext. Fixes: https://tracker.ceph.com/issues/50047 Signed-off-by: Alex Wu (cherry picked from commit 68812a2a4f63e9fd7c33f14b7a00c54a6a21128e) --- src/crush/CrushLocation.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/crush/CrushLocation.cc b/src/crush/CrushLocation.cc index c53769aa1bd00..05b36d810e7c9 100644 --- a/src/crush/CrushLocation.cc +++ b/src/crush/CrushLocation.cc @@ -122,7 +122,6 @@ int CrushLocation::init_on_startup() loc.clear(); loc.insert(std::make_pair("host", hostname)); loc.insert(std::make_pair("root", "default")); - lgeneric_dout(cct, 10) << "crush_location is (default) " << loc << dendl; return 0; } -- 2.39.5