static void ValidateLoggingType(const configuration& state) {
  if (state.logging_type <= LOGGING_TYPE_INVALID) {
    LOG_ERROR("Invalid logging_type :: %d", state.logging_type);
    exit(EXIT_FAILURE);
  }

  LOG_INFO("Logging_type :: %s",
           LoggingTypeToString(state.logging_type).c_str());
}
Ejemplo n.º 2
0
static void ValidateLoggingType(const configuration& state) {
  LOG_INFO("Invalid logging_type :: %s",
           LoggingTypeToString(state.logging_type).c_str());
}