aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit19f0eb98bf99be6d07504a5436e935d4c6b1d189 (patch)
tree883811c86fc221fc526fd2262b310abfeb77439d /plugins
parent23e05cc038ce41fb538d3e9c2d096f1cf914af51 (diff)
downloadprosody-19f0eb98bf99be6d07504a5436e935d4c6b1d189.tar.gz
prosody-19f0eb98bf99be6d07504a5436e935d4c6b1d189.zip
mod_http_files: Log 404 failure reason
Diffstat (limited to 'plugins')
-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");