Diff

plugins/mod_http_files.lua @ 4701:3ce9e1ca9c15

mod_http_files: Log 404 failure reason
author Matthew Wild <mwild1@gmail.com>
date Thu, 26 Apr 2012 06:30:29 +0100
parent 4700:63386138e393
child 4703:684ea42ca77a
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");