mod_http_files: Log 404 failure reason
authorMatthew Wild <mwild1@gmail.com>
Thu, 26 Apr 2012 06:30:29 +0100
changeset 4701 3ce9e1ca9c15
parent 4700 63386138e393
child 4702 5a85e541de1a
mod_http_files: Log 404 failure reason
plugins/mod_http_files.lua
--- a/plugins/mod_http_files.lua	Thu Apr 26 06:10:14 2012 +0100
+++ b/plugins/mod_http_files.lua	Thu Apr 26 06:30:29 2012 +0100
@@ -58,6 +58,7 @@
 	end
 	local f, err = open(full_path, "rb");
 	if not f then
+		module:log("warn", "Failed to open file: %s", err);
 		return 404;
 	end
 	local data = f:read("*a");