将cache的日志从屏幕改为输出到local logger。

This commit is contained in:
zhengchao
2018-10-19 21:56:04 +08:00
parent b40f599579
commit af4f470fe7
4 changed files with 38 additions and 31 deletions

View File

@@ -393,7 +393,7 @@ static void certstore_rpc_on_succ(void* result, void* user)
{
struct promise * p = (struct promise *) user;
struct key_keeper_promise_ctx* ctx = (struct key_keeper_promise_ctx*)promise_get_ctx(p);
TFE_LOG_INFO(ctx->logger, "certstore rpc success");
// TFE_LOG_INFO(ctx->logger, "certstore rpc success");
future_destroy(ctx->f_certstore_rpc);
MESA_htable_handle htable= ctx->htable;
const uchar* key = ctx->key;
@@ -459,7 +459,7 @@ static int __wrapper_MESA_htable_set_opt_func(MESA_htable_handle table, enum MES
static void key_keeper_free_serialized(void* data)
{
printf("call key_keeper_free_serialized\n");
// printf("call key_keeper_free_serialized\n");
struct keyring_private* kyr = (struct keyring_private*)data;
key_keeper_free_keyring(&(kyr->head));
}
@@ -506,7 +506,7 @@ struct key_keeper* key_keeper_init(const char * profile, const char* section, vo
keeper->logger = logger;
char tmp[TFE_STRING_MAX]={0};
MESA_load_profile_string_def(profile, section, "mode", tmp, sizeof(tmp), "debug");
if(strncmp(tmp, "debug", TFE_STRING_MAX) == 0)
if(strcasecmp(tmp, "debug") == 0)
{
keeper->work_mode = KK_MODE_DEBUG;
}