将cache的日志从屏幕改为输出到local logger。
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user