mod_proxy65: Replace error() calls with module:log("error", ...)
[prosody.git] / plugins / mod_proxy65.lua
index b2f901af86311ac92f4dc766f9ee8bb5071ce8b4..a4e1798b09114dd5cacecad9a88ea411dcc849ee 100644 (file)
@@ -247,8 +247,8 @@ function handle_to_domain(origin, stanza)
 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');