]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: da: fix log-level comparison to emove annoying warning
authorWilly Tarreau <w@1wt.eu>
Mon, 1 Jun 2015 13:25:46 +0000 (15:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Jun 2015 11:42:12 +0000 (13:42 +0200)
commit6bd42e7f410a91a11ad9ccb6ef9cbd98f61a370c
treea01748a04a1b39c9d37e40dabbbc838422d2256a
parentb5efa0149f1c5f0610e30abb79b16b641f22254d
BUG/MINOR: da: fix log-level comparison to emove annoying warning

When haproxy is run on the foreground with DeviceAtlas enabled, one
line of warning is seen for every test because the comparison is always
true even when loglevel is zero :

willy@wtap:haproxy$ ./haproxy  -db -f test-da.cfg
[WARNING] 151/150831 (25506) : deviceatlas : final memory image 7148029 bytes.
Deviceatlas module loaded.
[WARNING] 151/150832 (25506) : deviceatlas : .
[WARNING] 151/150833 (25506) : deviceatlas : .
[WARNING] 151/150833 (25506) : deviceatlas : .
^C

Don't emit a warning when loglevel is null.
src/da.c