diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-26 06:30:29 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-26 06:30:29 +0100 |
commit | 19f0eb98bf99be6d07504a5436e935d4c6b1d189 (patch) | |
tree | 883811c86fc221fc526fd2262b310abfeb77439d /plugins/mod_http_files.lua | |
parent | 23e05cc038ce41fb538d3e9c2d096f1cf914af51 (diff) | |
download | prosody-19f0eb98bf99be6d07504a5436e935d4c6b1d189.tar.gz prosody-19f0eb98bf99be6d07504a5436e935d4c6b1d189.zip |
mod_http_files: Log 404 failure reason
Diffstat (limited to 'plugins/mod_http_files.lua')
-rw-r--r-- | plugins/mod_http_files.lua | 1 |
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"); |