| 1116 | } |
| 1117 | |
| 1118 | void |
| 1119 | Log::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 | |
| 1140 | void |
| 1141 | Log::create_threads() |
nothing calls this directly
no test coverage detected