diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-03-14 21:40:14 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-03-14 21:40:14 +0000 |
commit | a156128a90397ec050ca3c2296d6d23e7308f3e6 (patch) | |
tree | 8d228febf438cb87b2afd4dea107d6aa4af5d5a4 | |
parent | 1ab1ddd3ee3f8a93b2d48d6a93840ea1ddaa6cb9 (diff) | |
download | prosody-a156128a90397ec050ca3c2296d6d23e7308f3e6.tar.gz prosody-a156128a90397ec050ca3c2296d6d23e7308f3e6.zip |
portmanager: Fix log message when multiple services are configured to use the same port
-rw-r--r-- | core/portmanager.lua | 2 |
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 |