Mercurial > prosody-modules
diff mod_http_upload/mod_http_upload.lua @ 2192:bb8f7785aed7
mod_http_upload: Demote some errors to warnings
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 31 May 2016 17:13:48 +0200 |
parents | e47046abf568 |
children | 40824a38d505 |
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua Tue May 31 17:10:46 2016 +0200 +++ b/mod_http_upload/mod_http_upload.lua Tue May 31 17:13:48 2016 +0200 @@ -91,12 +91,12 @@ return 400; end if #event.request.body > file_size_limit then - module:log("error", "Uploaded file too large %d bytes", #event.request.body); + module:log("warn", "Uploaded file too large %d bytes", #event.request.body); return 400; end local dirname = join_path(storage_path, random); if not lfs.mkdir(dirname) then - module:log("error", "Could not create directory %s for upload", dirname); + module:log("warn", "Could not create directory %s for upload", dirname); return 500; end local full_filename = join_path(dirname, filename);