future promise支持输出到statsd。

This commit is contained in:
zhengchao
2018-11-20 20:53:11 +08:00
committed by 郑超
parent c098590167
commit fbd919eae2
6 changed files with 57 additions and 21 deletions

View File

@@ -303,7 +303,7 @@ int tfe_stat_init(struct tfe_proxy * proxy, const char * profile)
int main(int argc, char * argv[])
{
const char * main_profile = "./conf/tfe/tfe.conf";
const char * future_profile= "./conf/future.conf";
unsigned int __log_level = RLOG_LV_INFO;
MESA_load_profile_uint_def(main_profile, "log", "level", &__log_level, RLOG_LV_INFO);
@@ -317,7 +317,7 @@ int main(int argc, char * argv[])
exit(EXIT_FAILURE);
}
future_promise_library_init();
future_promise_library_init(future_profile);
tango_cache_global_init();
/* PROXY INSTANCE */

View File

@@ -16,7 +16,7 @@ struct key_keeper_ctx{
int main()
{
void* logger = NULL;
future_promise_library_init();
future_promise_library_init(NULL);
//struct event_base* evbase = event_base_new();
struct key_keeper * keeper = key_keeper_init("./conf/tfe.conf", "key_keeper", logger);
struct key_keeper_ctx* ctx = (struct key_keeper_ctx*)malloc(sizeof(struct key_keeper_ctx));

View File

@@ -225,7 +225,7 @@ int main()
{
char cert_store_host[TFE_STRING_MAX];
unsigned int cert_store_port;
future_promise_library_init();
future_promise_library_init(NULL);
//const char* file_path = "./log/test_tfe_rpc.log",*host="localhost";
//void * logger = MESA_create_runtime_log_handle(file_path, RLOG_LV_INFO);
const char* profile = "./conf/tfe.conf";