Codebase list facter / 4e00fd4
(FACT-2489) external facts files log update When there is no appropriate external facts resolver for a file in `puppet/cache/facts.d` or other external facts dir, a warning message is logged. This leads to many warning messages in case multi OS external facts files are in the same directory. With this change, a debug log message is logged instead a warning in case there is no appropriate external facts resolver selected. Ciprian Badescu 4 years ago
1 changed file(s) with 1 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
173173 auto resolver = erf.get_resolver(path);
174174 files.push_back(make_pair(path, resolver));
175175 } catch (external::external_fact_no_resolver& e) {
176 if (warn) {
177 LOG_WARNING("skipping file \"{1}\": {2}", path, e.what());
178 } else {
179 LOG_DEBUG("skipping file \"{1}\": {2}", path, e.what());
180 }
176 LOG_DEBUG("skipping file \"{1}\": {2}", path, e.what());
181177 }
182178 return true;
183179 });