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: v17.1.0~2384^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40457%2Fhead;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 --- diff --git a/src/crush/CrushLocation.cc b/src/crush/CrushLocation.cc index c53769aa1bd0..05b36d810e7c 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; }