Software /
code /
prosody
Diff
core/portmanager.lua @ 4609:83a5377ffea2
portmanager: Fix log message when multiple services are configured to use the same port
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 14 Mar 2012 21:40:14 +0000 |
parent | 4608:01d52f31b6b3 |
child | 4612:8bb93860fe46 |
line wrap: on
line diff
--- a/core/portmanager.lua Wed Mar 14 21:39:45 2012 +0000 +++ b/core/portmanager.lua Wed Mar 14 21:40:14 2012 +0000 @@ -95,7 +95,7 @@ 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