mod_proxy65: Replace error() calls with module:log("error", ...)
authorMatthew Wild <mwild1@gmail.com>
Thu, 03 Dec 2009 14:13:09 +0000
changeset 2305 7ddd00260808
parent 2304 26f59e5e5c03
child 2306 21f0d80f244a
mod_proxy65: Replace error() calls with module:log("error", ...)
plugins/mod_proxy65.lua
--- a/plugins/mod_proxy65.lua	Thu Dec 03 14:08:54 2009 +0000
+++ b/plugins/mod_proxy65.lua	Thu Dec 03 14:13:09 2009 +0000
@@ -247,8 +247,8 @@
 end
 
 if not connlisteners.register(module.host .. ':proxy65', connlistener) then
-	error("mod_proxy65: Could not establish a connection listener. Check your configuration please.");
-	error(" one possible cause for this would be that two proxy65 components share the same port.");
+	module:log("error", "mod_proxy65: Could not establish a connection listener. Check your configuration please.");
+	module:log("error", "Possibly two proxy65 components are configured to share the same port.");
 end
 
 connlisteners.start(module.host .. ':proxy65');