From 19f0eb98bf99be6d07504a5436e935d4c6b1d189 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 26 Apr 2012 06:30:29 +0100 Subject: mod_http_files: Log 404 failure reason --- plugins/mod_http_files.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/mod_http_files.lua b/plugins/mod_http_files.lua index c5859283..9d5aa252 100644 --- a/plugins/mod_http_files.lua +++ b/plugins/mod_http_files.lua @@ -58,6 +58,7 @@ function serve_file(event, path) 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"); -- cgit v1.2.3