tfe 支持 zlog
This commit is contained in:
@@ -578,7 +578,6 @@ int doh_on_init(struct tfe_proxy *proxy)
|
||||
assert(g_doh_conf);
|
||||
|
||||
MESA_load_profile_int_def(profile, "doh", "enable", &(g_doh_conf->enable), 1);
|
||||
MESA_load_profile_int_def(profile, "log", "log_level", &(g_doh_conf->local_level), 10);
|
||||
|
||||
if (!g_doh_conf->enable)
|
||||
{
|
||||
@@ -588,7 +587,7 @@ int doh_on_init(struct tfe_proxy *proxy)
|
||||
TFE_LOG_INFO(NULL, "Doh enabled.");
|
||||
|
||||
g_doh_conf->thread_num = tfe_proxy_get_work_thread_count();
|
||||
g_doh_conf->local_logger = MESA_create_runtime_log_handle("./log/doh_pxy.log", g_doh_conf->local_level);
|
||||
g_doh_conf->local_logger = MESA_create_runtime_log_handle("doh", RLOG_LV_DEBUG);
|
||||
|
||||
g_doh_conf->gc_evbase = tfe_proxy_get_gc_evbase();
|
||||
g_doh_conf->fs_handle = tfe_proxy_get_fs_handle();
|
||||
|
||||
Reference in New Issue
Block a user