*.修改帧处理方式
*.删除同一流中多ID遍历模式 *.添加函数指针数组管理不同帧回调 *.添加流处理打印
This commit is contained in:
@@ -45,16 +45,16 @@ struct event_timer_ctx
|
||||
|
||||
void load_logging_conf(const char *config)
|
||||
{
|
||||
RTLogInit2Data *logging_sc_lid = rt_log_data();
|
||||
RTLogInit2Data *logging_sc_lid = logger();
|
||||
|
||||
MESA_load_profile_int_def(config, (const char *)"http",(const char *)"loglevel",
|
||||
&logging_sc_lid->run_log_level, 10);
|
||||
MESA_load_profile_string_def(config, (const char *)"http",(const char *)"logfile",
|
||||
logging_sc_lid->run_log_path, 128, "log/http2.log");
|
||||
|
||||
logging_sc_lid->run_log_handle = MESA_create_runtime_log_handle(logging_sc_lid->run_log_path, logging_sc_lid->run_log_level);
|
||||
if(logging_sc_lid->run_log_handle == NULL){
|
||||
TFE_LOG_ERROR(logging_sc_lid->run_log_handle, "Create log runtime_log_handle error, init failed!");
|
||||
logging_sc_lid->handle = MESA_create_runtime_log_handle(logging_sc_lid->run_log_path, logging_sc_lid->run_log_level);
|
||||
if(logging_sc_lid->handle == NULL){
|
||||
TFE_LOG_ERROR(logging_sc_lid->handle, "Create log runtime_log_handle error, init failed!");
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -87,7 +87,7 @@ http2_plugin_init(struct tfe_proxy * proxy)
|
||||
struct event * event = event_new(ev_base, -1, EV_PERSIST, http2_plugin_timer_gc_cb, &session_info);
|
||||
|
||||
if (unlikely(event == NULL)){
|
||||
TFE_LOG_ERROR(rt_log_data()->run_log_handle, "Create timer error, init failed!");
|
||||
TFE_LOG_ERROR(logger()->handle, "Create timer error, init failed!");
|
||||
}
|
||||
|
||||
evtimer_add(event, &timer);
|
||||
|
||||
Reference in New Issue
Block a user