mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 00:14:31 +00: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) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user