Warnings to redirect to /dev/null


Log to systemd’s /dev/log compatibility socket

#log /dev/null local0 warning alert
#log /dev/null local1 warning alert
#log /dev/null local1 notice alert
#log local0 warning
log /dev/log local0 warning

timeout connect 10000ms
timeout client 60000ms
timeout server 60000ms
log global

frontend fe_http2
mode tcp
option dontlognull
option dontlog-normal
#bind ssl ca-file /f0/base/haproxy/ca.pem crt /f0/base/haproxy/server.pem alpn h2,http/1.1 ciphers ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-
default backend be_grpc

My front end would have bind commented at first and later when system has a condition, the bind line would be uncommented. so the situation is only till I have favourable one, which is short time.
However, when i checked the source, I see that it is Warning()–>printf

Is there a way, i can re-direct them to /dev/null??

I tried dontlognull, log /dev/null warning , but it didnt help.

Please suggest.