Changeset

3031:421890f3f247

usermanager: Bump log level of incorrect config option warnings
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 May 2010 21:43:37 +0100
parents 3030:2be7801474fb
children 3032:38459cffaf67
files core/usermanager.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/usermanager.lua	Fri May 07 21:42:45 2010 +0100
+++ b/core/usermanager.lua	Fri May 07 21:43:37 2010 +0100
@@ -90,7 +90,7 @@
 				if admin == jid then return true; end
 			end
 		elseif admins then
-			log("warn", "Option 'admins' for host '%s' is not a table", host);
+			log("error", "Option 'admins' for host '%s' is not a table", host);
 		end
 		return is_admin(jid); -- Test whether it's a global admin instead
 	end
@@ -132,7 +132,7 @@
 				if admin == jid then return true; end
 			end
 		elseif admins then
-			log("warn", "Option 'admins' for host '%s' is not a table", host);
+			log("error", "Option 'admins' for host '%s' is not a table", host);
 		end
 		return nil;
 	end