Gate the emission of the "Traffic Server is fuly initialized" log message. * * This message is intended to be helpful to users who want to know that * Traffic Server is not just running but has become fully initialized and is * ready to optimize traffic. This is in contrast to the "traffic server is * running" message which can be printed before either of these conditions. * * This function
| 531 | * after cache is initialized. |
| 532 | */ |
| 533 | void |
| 534 | emit_fully_initialized_message() |
| 535 | { |
| 536 | static std::atomic<unsigned int> initialization_state_counter = 0; |
| 537 | |
| 538 | // See the doxygen comment above explaining what the states are that |
| 539 | // constitute Traffic Server being fully initialized. |
| 540 | constexpr unsigned int num_initialization_states = 2; |
| 541 | |
| 542 | if (++initialization_state_counter == num_initialization_states) { |
| 543 | Note("Traffic Server is fully initialized."); |
| 544 | } |
| 545 | } |
| 546 | |
| 547 | void |
| 548 | set_debug_ip(const char *ip_string) |
no outgoing calls
no test coverage detected