Software /
code /
prosody-modules
Changeset
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 | 2191:e47046abf568 |
children | 2193:40824a38d505 |
files | mod_http_upload/mod_http_upload.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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);