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>
(cherry picked from commit
68812a2a4f63e9fd7c33f14b7a00c54a6a21128e)
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;
}