aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-03-14 21:40:14 +0000
committerMatthew Wild <mwild1@gmail.com>2012-03-14 21:40:14 +0000
commitdd638dc7173768121e53034170b4bf85943018c7 (patch)
tree8d228febf438cb87b2afd4dea107d6aa4af5d5a4
parentf70f82d6a711b3eb94e800baed00bb87c09eaecd (diff)
downloadprosody-dd638dc7173768121e53034170b4bf85943018c7.tar.gz
prosody-dd638dc7173768121e53034170b4bf85943018c7.zip
portmanager: Fix log message when multiple services are configured to use the same port
-rw-r--r--core/portmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua
index 2870815c..a7ba8a49 100644
--- a/core/portmanager.lua
+++ b/core/portmanager.lua
@@ -95,7 +95,7 @@ function activate_service(service_name)
for interface in bind_interfaces do
for port in bind_ports do
if not service_info.multiplex and #active_services:search(nil, interface, port) > 0 then
- log("error", "Multiple services configured to listen on the same port: %s, %s", table.concat(active_services:search(nil, interface, port), ", "), service_name);
+ log("error", "Multiple services configured to listen on the same port ([%s]:%d): %s, %s", interface, port, active_services:search(nil, interface, port)[1][1].service.name or "<unnamed>", service_name or "<unnamed>");
else
local handler, err = server.addserver(interface, port, listener, mode, ssl);
if not handler then