MCPcopy Create free account
hub / github.com/apache/trafficserver / evaluate_config

Method evaluate_config

src/proxy/logging/LogConfig.cc:765–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763}
764
765bool
766LogConfig::evaluate_config()
767{
768 ats_scoped_str path(RecConfigReadConfigPath("proxy.config.log.config.filename", ts::filename::LOGGING));
769 struct stat sbuf;
770 if (stat(path.get(), &sbuf) == -1 && errno == ENOENT) {
771 Warning("logging configuration '%s' doesn't exist", path.get());
772 return false;
773 }
774
775 Note("%s loading ...", path.get());
776 YamlLogConfig y(this);
777
778 bool zret = y.parse(path.get());
779 if (zret) {
780 Note("%s finished loading", path.get());
781 } else {
782 Note("%s failed to load", path.get());
783 }
784
785 return zret;
786}

Callers

nothing calls this directly

Calls 4

RecConfigReadConfigPathFunction · 0.85
statClass · 0.70
getMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected