策略验证配置文件、rpm包修改
1. 支持虚拟表配置修改 2. 支持tar、rpm打包 3. 修改table_info配置
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
add_library(common src/verify_policy_logging.cpp)
|
||||
target_include_directories(common PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
|
||||
target_link_libraries(common PUBLIC MESA_handle_logger)
|
||||
target_link_libraries(common PUBLIC MESA_handle_logger libevent-static)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*************************************************************************
|
||||
> File Name: verify_policy.h
|
||||
> Author:
|
||||
> Mail:
|
||||
> Author:
|
||||
> Mail:
|
||||
> Created Time: 2019年08月23日 星期五 18时06分03秒
|
||||
************************************************************************/
|
||||
|
||||
@@ -38,7 +38,7 @@ enum http_ev_bit_number
|
||||
enum tfe_http_event
|
||||
{
|
||||
EV_HTTP_IP = 1ULL << IP_BITNUM,
|
||||
EV_HTTP_URL = 1ULL << URL_BITNUM,
|
||||
EV_HTTP_URL = 1ULL << URL_BITNUM,
|
||||
EV_HTTP_FQDN = 1ULL << FQDN_BITNUM,
|
||||
EV_HTTP_REQ_HDR = 1ULL << REQ_HDR_BITNUM,
|
||||
EV_HTTP_RESP_HDR = 1ULL << RESP_HDR_BITNUM,
|
||||
@@ -49,21 +49,21 @@ enum tfe_http_event
|
||||
struct verify_proxy_thread
|
||||
{
|
||||
int id;
|
||||
pthread_t pid;
|
||||
pthread_t pid;
|
||||
evutil_socket_t accept_fd;
|
||||
pthread_attr_t *attr;
|
||||
pthread_attr_t *attr;
|
||||
struct evhttp *http;
|
||||
struct event_base *base;
|
||||
void * (*routine)(void *);
|
||||
void * (*routine)(void *);
|
||||
};
|
||||
|
||||
struct verify_proxy
|
||||
{
|
||||
char name[VERIFY_SYMBOL_MAX];
|
||||
{
|
||||
char name[VERIFY_SYMBOL_MAX];
|
||||
void * logger;
|
||||
unsigned int log_level;
|
||||
unsigned int nr_work_threads;
|
||||
unsigned int listen_port;
|
||||
unsigned int listen_port;
|
||||
struct verify_proxy_thread *work_threads[TFE_THREAD_MAX];
|
||||
};
|
||||
|
||||
|
||||
@@ -47,6 +47,10 @@ void * verify_syslog_init(const char *config)
|
||||
}else{
|
||||
mesa_runtime_log(RLOG_LV_INFO, MODULE_NAME, "Log module initialization");
|
||||
}
|
||||
|
||||
mesa_runtime_log(RLOG_LV_INFO, MODULE_NAME, "%s:%d", "Log level", logging_sc_lid.run_log_level);
|
||||
mesa_runtime_log(RLOG_LV_INFO, MODULE_NAME, "%s:%s", "Log Directory", logging_sc_lid.run_log_path);
|
||||
|
||||
return logging_sc_lid.run_log_handle;
|
||||
finish:
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user