]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/CrushLocation: do not print logging message in constructor 40457/head
authorAlex Wu <notmycupoftea@163.com>
Mon, 29 Mar 2021 02:09:50 +0000 (22:09 -0400)
committerAlex Wu <notmycupoftea@163.com>
Wed, 31 Mar 2021 01:54:17 +0000 (21:54 -0400)
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 <notmycupoftea@163.com>
src/crush/CrushLocation.cc

index c53769aa1bd0056f070d8a41ff4508df2230bf9f..05b36d810e7c908b68cf5b9c66add9ac6109bc04 100644 (file)
@@ -122,7 +122,6 @@ int CrushLocation::init_on_startup()
   loc.clear();
   loc.insert(std::make_pair<std::string,std::string>("host", hostname));
   loc.insert(std::make_pair<std::string,std::string>("root", "default"));
-  lgeneric_dout(cct, 10) << "crush_location is (default) " << loc << dendl;
   return 0;
 }