aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-26 06:30:29 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-26 06:30:29 +0100
commit603f08ca8419b8deff0334e206442f0c01bbd2f3 (patch)
tree883811c86fc221fc526fd2262b310abfeb77439d
parenteb427566464aa721caa9a482d01f59e460de2f51 (diff)
downloadprosody-603f08ca8419b8deff0334e206442f0c01bbd2f3.tar.gz
prosody-603f08ca8419b8deff0334e206442f0c01bbd2f3.zip
mod_http_files: Log 404 failure reason
-rw-r--r--plugins/mod_http_files.lua1
1 files changed, 1 insertions, 0 deletions
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");