aboutsummaryrefslogtreecommitdiffstats
path: root/core/portmanager.lua
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
commita156128a90397ec050ca3c2296d6d23e7308f3e6 (patch)
tree8d228febf438cb87b2afd4dea107d6aa4af5d5a4 /core/portmanager.lua
parent1ab1ddd3ee3f8a93b2d48d6a93840ea1ddaa6cb9 (diff)
downloadprosody-a156128a90397ec050ca3c2296d6d23e7308f3e6.tar.gz
prosody-a156128a90397ec050ca3c2296d6d23e7308f3e6.zip
portmanager: Fix log message when multiple services are configured to use the same port
Diffstat (limited to 'core/portmanager.lua')
-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