| 763 | } |
| 764 | |
| 765 | bool |
| 766 | LogConfig::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 | } |
nothing calls this directly
no test coverage detected