It is the first deprecated directive exposed via the
'expose-deprecated-directives' global option. This way, it is possible to
silent the warning about the SPOE uses.
For all information about the SPOE configuration and the SPOP specification, see
"doc/SPOE.txt".
-WARNING: The SPOE filter is now deprecated.
+WARNING: The SPOE filter is now deprecated. Use 'expose-deprecated-directives'
+ to silent warnings if you must use it.
9.4. Cache
----------
feature ignore_unknown_macro
haproxy h1 -conf-BAD {} {
+ global
+.if version_atleast(3.0-dev6)
+ expose-deprecated-directives
+.endif
+
defaults
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
curpxopts2 = 0;
- ha_warning("Proxy %s: SPOE filter is deprecated and will be removed in future version.\n", px->id);
+ if (!deprecated_directives_allowed)
+ ha_warning("Proxy %s: SPOE filter is deprecated and will be removed in future version. "
+ "Use 'expose-deprecated-directives' in global section to silent this warning\n", px->id);
conf = calloc(1, sizeof(*conf));
if (conf == NULL) {