MINOR: log: slightly improve error message syntax on log failure

The error messages used to say something along "socket logger 2 failed"
or "sendmsg logger 2 failed" which are confusing. Let's rephrase this
"sendmsg() failed for logger 2".
This commit is contained in:
Willy Tarreau 2018-11-12 07:00:11 +01:00
parent e07bc14e35
commit 251fe34ca2

View File

@ -1346,7 +1346,7 @@ void __send_log(struct proxy *p, int level, char *message, size_t size, char *sd
if (!once) {
once = 1; /* note: no need for atomic ops here */
ha_alert("socket for logger #%d failed: %s (errno=%d)\n",
ha_alert("socket() failed in logger #%d: %s (errno=%d)\n",
nblogger, strerror(errno), errno);
}
continue;
@ -1480,7 +1480,7 @@ send:
if (!once) {
once = 1; /* note: no need for atomic ops here */
ha_alert("sendmsg logger #%d failed: %s (errno=%d)\n",
ha_alert("sendmsg() failed in logger #%d: %s (errno=%d)\n",
nblogger, strerror(errno), errno);
}
}