mod_register_json: fix logging message for already pending registrations' bounces.
authorMarco Cirillo <maranda@lightwitch.org>
Sun, 05 May 2013 15:19:30 +0200
changeset 995 716a2b9cc18d
parent 994 487cd02aada0
child 996 37af655ca575
mod_register_json: fix logging message for already pending registrations' bounces.
mod_register_json/register_json/mod_register_json.lua
--- a/mod_register_json/register_json/mod_register_json.lua	Sun May 05 11:23:50 2013 +0200
+++ b/mod_register_json/register_json/mod_register_json.lua	Sun May 05 15:19:30 2013 +0200
@@ -133,7 +133,7 @@
 				return http_response(event, 406, "Supplied username contains invalid characters, see RFC 6122.")
 			else
 				if pending_node[username] then
-					module:log("warn", "%s attempted to submit a registration request but another request for that user is pending")
+					module:log("warn", "%s attempted to submit a registration request but another request for that user (%s) is pending", ip, username)
 					return http_response(event, 401, "Another user registration by that username is pending.")
 				end