X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=config.cpp;h=fad29a5361b7627eb442e0037c2595abcb2a55a7;hb=136469d722a9986be6bbad68788619284919d876;hp=77acf6dd61cac95c6a4792446a42bc99ff6def29;hpb=92100dd95f705d079c926783c9009fbb6d8b984a;p=cubemap diff --git a/config.cpp b/config.cpp index 77acf6d..fad29a5 100644 --- a/config.cpp +++ b/config.cpp @@ -287,12 +287,15 @@ bool parse_config(const string &filename, Config *config) if (has_stats_interval && !has_stats_file) { log(WARNING, "'stats_interval' given, but no 'stats_file'. No statistics will be written."); } + + fetch_config_string(lines, "access_log", &config->access_log_file); for (size_t i = 0; i < lines.size(); ++i) { const ConfigLine &line = lines[i]; if (line.keyword == "num_servers" || line.keyword == "stats_file" || - line.keyword == "stats_interval") { + line.keyword == "stats_interval" || + line.keyword == "access_log") { // Already taken care of, above. } else if (line.keyword == "port") { if (!parse_port(line, config)) {