comparison mod_log_json/mod_log_json.lua @ 3747:f288177f4c5d

mod_log_json: Fix to include underscore in UDP details in the other spot
author Kim Alvefur <zash@zash.se>
date Wed, 13 Nov 2019 17:54:54 +0100
parents bc865568ff02
children 27abf3b6819a
comparison
equal deleted inserted replaced
3746:bc865568ff02 3747:f288177f4c5d
14 function send(payload) 14 function send(payload)
15 logfile:write(payload, "\n"); 15 logfile:write(payload, "\n");
16 end 16 end
17 elseif config.udp_host and config.udp_port then 17 elseif config.udp_host and config.udp_port then
18 local conn = socket.udp(); 18 local conn = socket.udp();
19 conn:connect(config.udphost, config.udpport); 19 conn:connect(config.udp_host, config.udp_port);
20 function send(payload) 20 function send(payload)
21 conn:send(payload); 21 conn:send(payload);
22 end 22 end
23 end 23 end
24 return function (source, level, message, ...) 24 return function (source, level, message, ...)