hostmanager: Re-word log messages in line with config changes

Wed, 14 Apr 2010 13:00:24 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 14 Apr 2010 13:00:24 +0100
changeset 2981
15a7afea7f59
parent 2980
9f593650b3ce
child 2982
0395f2f34bd5

hostmanager: Re-word log messages in line with config changes

core/hostmanager.lua file | annotate | diff | comparison | revisions
--- a/core/hostmanager.lua	Wed Apr 14 12:59:46 2010 +0100
+++ b/core/hostmanager.lua	Wed Apr 14 13:00:24 2010 +0100
@@ -43,7 +43,7 @@
 	end
 	
 	if not activated_any_host then
-		log("error", "No hosts defined in the config file. This may cause unexpected behaviour as no modules will be loaded.");
+		log("error", "No active VirtualHost entries in the config file. This may cause unexpected behaviour as no modules will be loaded.");
 	end
 	
 	eventmanager.fire_event("hosts-activated", defined_hosts);
@@ -60,8 +60,8 @@
 	                     and (configmanager.get(host, "core", "disallow_s2s") ~= false))
 	              };
 	for option_name in pairs(host_config.core) do
-		if option_name:match("_ports$") then
-			log("warn", "%s: Option '%s' has no effect for virtual hosts - put it in global Host \"*\" instead", host, option_name);
+		if option_name:match("_ports$") or option_name:match("_interface$") then
+			log("warn", "%s: Option '%s' has no effect for virtual hosts - put it in the server-wide section instead", host, option_name);
 		end
 	end
 	

mercurial