This captures any non-global_init users who created their cct but haven't
started up the log thread yet. As long as common_init_finish() happens
after we have all of our config options (from the mon config or whatever),
we will log (or not log) to the right location(s).
Fixes a regression in
cd6a5b9c40779956629803f222c365bdb291a169
Signed-off-by: Sage Weil <sage@redhat.com>
cct->init_crypto();
ZTracer::ztrace_init();
+ if (!cct->_log->is_started()) {
+ cct->_log->start();
+ }
+
int flags = cct->get_init_flags();
if (!(flags & CINIT_FLAG_NO_DAEMON_ACTIONS))
cct->start_service_thread();
void _log_message(const char *s, bool crash);
public:
+ using Thread::is_started;
+
Log(const SubsystemMap *s);
~Log() override;