nghttpx: Add log when loading configuration file

This commit is contained in:
Tatsuhiro Tsujikawa 2017-04-20 22:22:29 +09:00
parent 34d3c45d35
commit 911d12f7c4
1 changed files with 1 additions and 0 deletions

View File

@ -2718,6 +2718,7 @@ int process_options(Config *config,
std::vector<std::pair<StringRef, StringRef>> &cmdcfgs) { std::vector<std::pair<StringRef, StringRef>> &cmdcfgs) {
std::array<char, STRERROR_BUFSIZE> errbuf; std::array<char, STRERROR_BUFSIZE> errbuf;
if (conf_exists(config->conf_path.c_str())) { if (conf_exists(config->conf_path.c_str())) {
LOG(NOTICE) << "Loading configuration from " << config->conf_path;
std::set<StringRef> include_set; std::set<StringRef> include_set;
if (load_config(config, config->conf_path.c_str(), include_set) == -1) { if (load_config(config, config->conf_path.c_str(), include_set) == -1) {
LOG(FATAL) << "Failed to load configuration from " << config->conf_path; LOG(FATAL) << "Failed to load configuration from " << config->conf_path;