日志打印BUG

This commit is contained in:
zhangchengwei
2018-10-19 17:39:24 +08:00
committed by zhengchao
parent 1563e1abba
commit 46db35c9a5
3 changed files with 8 additions and 9 deletions

View File

@@ -770,6 +770,8 @@ struct tango_cache_instance *tango_cache_instance_new(struct event_base* evbase,
instance = (struct tango_cache_instance *)malloc(sizeof(struct tango_cache_instance));
memset(instance, 0, sizeof(struct tango_cache_instance));
instance->runtime_log = runtimelog;
instance->evbase = evbase;
if(load_local_configure(instance, profile_path, section))
{
@@ -782,10 +784,7 @@ struct tango_cache_instance *tango_cache_instance_new(struct event_base* evbase,
return NULL;
}
instance->evbase = evbase;
instance->multi_hd = curl_multi_init();
instance->runtime_log = runtimelog;
curl_multi_setopt(instance->multi_hd, CURLMOPT_PIPELINING, CURLPIPE_HTTP1 | CURLPIPE_MULTIPLEX);
curl_multi_setopt(instance->multi_hd, CURLMOPT_MAX_HOST_CONNECTIONS, instance->max_cnn_host);
curl_multi_setopt(instance->multi_hd, CURLMOPT_SOCKETFUNCTION, curl_socket_function_cb);