MCPcopy Create free account
hub / github.com/apache/trafficserver / init_when_enabled

Method init_when_enabled

src/proxy/logging/Log.cc:1118–1138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116}
1117
1118void
1119Log::init_when_enabled()
1120{
1121 // make sure the log config has been initialized
1122 ink_release_assert(config->initialized == true);
1123
1124 if (!(init_status & FULLY_INITIALIZED)) {
1125 LogConfig::register_config_callbacks();
1126
1127 // create the flush thread
1128 create_threads();
1129 eventProcessor.schedule_every(new PeriodicWakeup(preproc_threads, 1), HRTIME_SECOND, ET_CALL);
1130
1131 init_status |= FULLY_INITIALIZED;
1132 }
1133
1134 Note("logging initialized[%d], logging_mode = %d", init_status, logging_mode);
1135 if (dbg_ctl_log_config.on()) {
1136 config->display();
1137 }
1138}
1139
1140void
1141Log::create_threads()

Callers

nothing calls this directly

Calls 3

schedule_everyMethod · 0.45
onMethod · 0.45
displayMethod · 0.45

Tested by

no test coverage detected