usermanager: Bump log level of incorrect config option warnings

Fri, 07 May 2010 21:43:37 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 07 May 2010 21:43:37 +0100
changeset 3031
421890f3f247
parent 3030
2be7801474fb
child 3032
38459cffaf67

usermanager: Bump log level of incorrect config option warnings

core/usermanager.lua file | annotate | diff | comparison | revisions
--- 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

mercurial