# HG changeset patch # User Kim Alvefur # Date 1464707628 -7200 # Node ID bb8f7785aed7d00f950580f2dee8e128b391a3b1 # Parent e47046abf5684607de912ffe238d26cfab164bd4 mod_http_upload: Demote some errors to warnings diff -r e47046abf568 -r bb8f7785aed7 mod_http_upload/mod_http_upload.lua --- 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);