mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-26 22:52:13 +00:00
BUG/MINOR: diag: always show the version before dumping a diag warning
Diag warnings were added in 2.4 by commit7b01a8dbd
("MINOR: global: define diagnostic mode of execution") but probably due to the split function that checks for the mode, they did not reuse the emission of the version string before the first warning, as was brought in 2.2 by commitbebd21206
("MINOR: init: report in "haproxy -c" whether there were warnings or not"). The effet is that diag warnings are emitted before the version string if there is no other warning nor error. Let's just proceed like for the two other ones. This can be backported to 2.4, though this is of very low importance.
This commit is contained in:
parent
d480b7be96
commit
ced4148401
@ -472,6 +472,10 @@ void ha_warning(const char *fmt, ...)
|
||||
*/
|
||||
void _ha_vdiag_warning(const char *fmt, va_list argp)
|
||||
{
|
||||
warned |= WARN_ANY;
|
||||
HA_ATOMIC_INC(&tot_warnings);
|
||||
|
||||
warn_exec_path();
|
||||
print_message(1, "DIAG", fmt, argp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user