mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
MEDIUM: config: inform the user that "reqsetbe" is deprecated
It will go away in 1.6.
This commit is contained in:
parent
de9d2d7b86
commit
40bac83734
@ -174,6 +174,7 @@ extern unsigned int warned; /* bitfield of a few warnings to emit just once
|
||||
|
||||
/* bit values to go with "warned" above */
|
||||
#define WARN_BLOCK_DEPRECATED 0x00000001
|
||||
#define WARN_REQSETBE_DEPRECATED 0x00000002
|
||||
|
||||
/* to be used with warned and WARN_* */
|
||||
static inline int already_warned(unsigned int warning)
|
||||
|
||||
@ -4997,6 +4997,9 @@ stats_error_parsing:
|
||||
args[0], args[1], args[2], (const char **)args+3);
|
||||
if (err_code & ERR_FATAL)
|
||||
goto out;
|
||||
|
||||
if (!already_warned(WARN_REQSETBE_DEPRECATED))
|
||||
Warning("parsing [%s:%d] : The '%s' directive is now deprecated in favor of the more efficient 'use_backend' which uses a different but more powerful syntax. Future versions will not support '%s' anymore, you should convert it now!\n", file, linenum, args[0], args[0]);
|
||||
}
|
||||
else if (!strcmp(args[0], "reqisetbe")) { /* switch the backend from a regex, ignoring case */
|
||||
err_code |= create_cond_regex_rule(file, linenum, curproxy,
|
||||
@ -5004,6 +5007,9 @@ stats_error_parsing:
|
||||
args[0], args[1], args[2], (const char **)args+3);
|
||||
if (err_code & ERR_FATAL)
|
||||
goto out;
|
||||
|
||||
if (!already_warned(WARN_REQSETBE_DEPRECATED))
|
||||
Warning("parsing [%s:%d] : The '%s' directive is now deprecated in favor of the more efficient 'use_backend' which uses a different but more powerful syntax. Future versions will not support '%s' anymore, you should convert it now!\n", file, linenum, args[0], args[0]);
|
||||
}
|
||||
else if (!strcmp(args[0], "reqirep")) { /* replace request header from a regex, ignoring case */
|
||||
if (*(args[2]) == 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user