This is an automated email from the ASF dual-hosted git repository.
shinrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 56366c2 Add warning of body_factory templates are not loaded due to
missing dot file.
56366c2 is described below
commit 56366c209150e3e7e1331b3240ac7bf750900845
Author: Susan Hinrichs <[email protected]>
AuthorDate: Tue Sep 25 16:57:56 2018 -0500
Add warning of body_factory templates are not loaded due to missing dot
file.
---
proxy/http/HttpBodyFactory.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/proxy/http/HttpBodyFactory.cc b/proxy/http/HttpBodyFactory.cc
index 162a515..2c7841f 100644
--- a/proxy/http/HttpBodyFactory.cc
+++ b/proxy/http/HttpBodyFactory.cc
@@ -707,6 +707,7 @@ HttpBodyFactory::load_body_set_from_directory(char
*set_name, char *tmpl_dir)
ink_filepath_make(path, sizeof(path), tmpl_dir, ".body_factory_info");
status = stat(path, &stat_buf);
if ((status < 0) || !S_ISREG(stat_buf.st_mode)) {
+ Warning("Missing .body_factory_info in %s. Not loading body_factory
templates", tmpl_dir);
closedir(dir);
return nullptr;
}