mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
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:
parent
e07bc14e35
commit
251fe34ca2
@ -1346,7 +1346,7 @@ void __send_log(struct proxy *p, int level, char *message, size_t size, char *sd
|
|||||||
|
|
||||||
if (!once) {
|
if (!once) {
|
||||||
once = 1; /* note: no need for atomic ops here */
|
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);
|
nblogger, strerror(errno), errno);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
@ -1480,7 +1480,7 @@ send:
|
|||||||
|
|
||||||
if (!once) {
|
if (!once) {
|
||||||
once = 1; /* note: no need for atomic ops here */
|
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);
|
nblogger, strerror(errno), errno);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user