MINOR: log: stop emitting alerts when it's not possible to write on the socket
authorWilly Tarreau <w@1wt.eu>
Tue, 20 Mar 2018 10:17:29 +0000 (11:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Mar 2018 15:44:25 +0000 (16:44 +0100)
commitc98aebcdb8f1d21a1a3501bab91e1d702171395e
tree29a4aa90435ae7fd685414272f9ec5d4f842ecc4
parentfd83f0bfa414ba7463450b99f86858cf33fa285b
MINOR: log: stop emitting alerts when it's not possible to write on the socket

This is a recurring pain when using certain unix domain sockets or when
sending to temporarily unroutable addresses, if the process remains in
the foreground, the console is full of error which it's impossible to
do anything about. It's even worse when the process is remote, or when
run from a serial console which will slow the whole process down. Let's
send them only once now to warn about a possible config issue, and not
pollute the system nor slow everything down.
src/log.c