logread: fix erroneous message "Logread connected to" with udp
authorGiovanni Giacobbi <giovanni@giacobbi.net>
Tue, 27 Jul 2021 13:15:26 +0000 (15:15 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 3 Aug 2021 21:02:36 +0000 (22:02 +0100)
commit205defb597295a4a8966db3e618cfe41a29bed99
treecb69e7442b552b29b14f409417608f0e5d44b911
parent1f4f72bde55e8c5810db4ead4170352febd2dbfb
logread: fix erroneous message "Logread connected to" with udp

When streaming the syslog messages via udp, the socket connection
always succeeds by definition, but it can still fail to send. In such
case, the syslog keep repeating the following two messages:

    failed to send log data to ip:port via udp
    Logread connected to ip:port

With this change, only one initial message "Logread connected to..." is
logged.

Also fixed capital letter for "failed to send" message.

Signed-off-by: Giovanni Giacobbi <giovanni@giacobbi.net>
Signed-off-by: Daniel Golle <daniel@makrotopia.org> (string de-duplication)
log/logread.c