# HG changeset patch # User Kim Alvefur # Date 1465694508 -7200 # Node ID e654d6e1fb5060302ed533c2ab5414ab2b95fcfe # Parent c45ad4b7aaa36bcbfff34a4c50f5a388cf0b7f6e mod_http_upload: Log if file size exceeds limit diff -r c45ad4b7aaa3 -r e654d6e1fb50 mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Sun Jun 12 02:51:08 2016 +0200 +++ b/mod_http_upload/mod_http_upload.lua Sun Jun 12 03:21:48 2016 +0200 @@ -67,6 +67,7 @@ origin.send(st.error_reply(stanza, "modify", "bad-request", "Missing or invalid file size")); return true; elseif filesize > file_size_limit then + module:log("debug", "File too large (%d > %d)", filesize, file_size_limit); origin.send(st.error_reply(stanza, "modify", "not-acceptable", "File too large", st.stanza("file-too-large", {xmlns=xmlns_http_upload}) :tag("max-size"):text(tostring(file_size_limit))));