tfe 支持 zlog
This commit is contained in:
@@ -128,7 +128,6 @@ struct pangu_rt
|
||||
Maat_feather_t maat;
|
||||
struct pangu_logger * send_logger;
|
||||
void * local_logger;
|
||||
int log_level;
|
||||
int thread_num;
|
||||
int scan_table_id[__SCAN_TABLE_MAX];
|
||||
int plolicy_table_id[POLICY_PROFILE_TABLE_MAX];
|
||||
@@ -843,8 +842,7 @@ error_out:
|
||||
|
||||
int pangu_http_init(struct tfe_proxy * proxy)
|
||||
{
|
||||
const char * profile_path = "./conf/pangu/pangu_pxy.conf";
|
||||
const char * logfile = "./log/pangu_pxy.log";
|
||||
const char * profile_path = "./conf/pangu/pangu_pxy.conf";;
|
||||
int temp=0;
|
||||
|
||||
g_pangu_rt = ALLOC(struct pangu_rt, 1);
|
||||
@@ -857,10 +855,9 @@ int pangu_http_init(struct tfe_proxy * proxy)
|
||||
g_pangu_rt->thread_num = tfe_proxy_get_work_thread_count();
|
||||
g_pangu_rt->gc_evbase=tfe_proxy_get_gc_evbase();
|
||||
|
||||
MESA_load_profile_int_def(profile_path, "DEBUG", "LOG_LEVEL", &(g_pangu_rt->log_level), 0);
|
||||
g_pangu_rt->local_logger = MESA_create_runtime_log_handle(logfile, g_pangu_rt->log_level);
|
||||
g_pangu_rt->local_logger = MESA_create_runtime_log_handle("pangu", RLOG_LV_DEBUG);
|
||||
|
||||
g_pangu_rt->send_logger = pangu_log_handle_create(profile_path, "LOG", g_pangu_rt->local_logger);
|
||||
g_pangu_rt->send_logger = pangu_log_handle_create(profile_path, "LOG", g_pangu_rt->local_logger);
|
||||
if (!g_pangu_rt->send_logger)
|
||||
{
|
||||
goto error_out;
|
||||
|
||||
Reference in New Issue
Block a user