Comparison

core/portmanager.lua @ 10106:c8fbb7f2fc0d

core.portmanager: Remove tostring call from logging Taken care of by loggingmanager now
author Kim Alvefur <zash@zash.se>
date Tue, 30 Jul 2019 02:19:54 +0200
parent 9975:ca01c449357f
child 10107:1dbabbebb53c
comparison
equal deleted inserted replaced
10105:63f87211fcdd 10106:c8fbb7f2fc0d
101 101
102 for interface in bind_interfaces do 102 for interface in bind_interfaces do
103 for port in bind_ports do 103 for port in bind_ports do
104 local port_number = tonumber(port); 104 local port_number = tonumber(port);
105 if not port_number then 105 if not port_number then
106 log("error", "Invalid port number specified for service '%s': %s", service_info.name, tostring(port)); 106 log("error", "Invalid port number specified for service '%s': %s", service_info.name, port);
107 elseif #active_services:search(nil, interface, port_number) > 0 then 107 elseif #active_services:search(nil, interface, port_number) > 0 then
108 log("error", "Multiple services configured to listen on the same port ([%s]:%d): %s, %s", interface, port, 108 log("error", "Multiple services configured to listen on the same port ([%s]:%d): %s, %s", interface, port,
109 active_services:search(nil, interface, port)[1][1].service.name or "<unnamed>", service_name or "<unnamed>"); 109 active_services:search(nil, interface, port)[1][1].service.name or "<unnamed>", service_name or "<unnamed>");
110 else 110 else
111 local ssl, cfg, err; 111 local ssl, cfg, err;