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 | 603f08ca8419b8deff0334e206442f0c01bbd2f3 (patch) | |
tree | 883811c86fc221fc526fd2262b310abfeb77439d | |
parent | eb427566464aa721caa9a482d01f59e460de2f51 (diff) | |
download | prosody-603f08ca8419b8deff0334e206442f0c01bbd2f3.tar.gz prosody-603f08ca8419b8deff0334e206442f0c01bbd2f3.zip |
mod_http_files: Log 404 failure reason
-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"); |