Changeset

4701:3ce9e1ca9c15

mod_http_files: Log 404 failure reason
author Matthew Wild <mwild1@gmail.com>
date Thu, 26 Apr 2012 06:30:29 +0100
parents 4700:63386138e393
children 4702:5a85e541de1a
files plugins/mod_http_files.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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");