From: Alex Wu Date: Mon, 29 Mar 2021 02:09:50 +0000 (-0400) Subject: crush/CrushLocation: do not print logging message in constructor X-Git-Tag: v15.2.13~10^2~20^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=da0aa5f20db90ff87177321a413d0d9e3b1684f1;p=ceph.git 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) --- diff --git a/src/crush/CrushLocation.cc b/src/crush/CrushLocation.cc index c53769aa1bd..05b36d810e7 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; }