update it

This commit is contained in:
Sukchan Lee 2017-07-13 15:46:27 +09:00
parent 79f7ea1a58
commit c055811c10
2 changed files with 9 additions and 6 deletions

View File

@ -101,15 +101,13 @@ status_t context_parse_config()
{
self.db_uri = jsmntok_to_string(json, &token[i+1]);
i++;
}
if (jsmntok_equal(json, &token[i], "LOG_PATH") == 0)
}
else if (jsmntok_equal(json, &token[i], "LOG_PATH") == 0)
{
self.log_path = jsmntok_to_string(json, &token[i+1]);
i++;
}
}
printf("%s, %s\n", self.db_uri, self.log_path);
return CORE_OK;
}

View File

@ -1,2 +1,7 @@
DB_URI : "mongodb://localhost/nextepc"
LOG_PATH : "@prefix@/log/nextepc.log"
{
#
DB_URI : "mongodb://localhost/nextepc"
LOG_PATH : "@prefix@/log/nextepc.log"
}