Fixes #393 - catch error when sending UDP packet to GELF server

This commit is contained in:
Did 2016-06-20 10:08:32 +02:00 committed by GitHub
parent 4e0a71865e
commit 43bef96799

View File

@ -114,9 +114,9 @@ function gelfAppender (layout, host, port, hostname, facility) {
}
function sendPacket(packet) {
try {
client.send(packet, 0, packet.length, port, host);
} catch(e) {}
client.send(packet, 0, packet.length, port, host, function(err) {
debug(err);
});
}
return function(loggingEvent) {