Package: haproxy
Version: 1.4.8-1
Severity: minor
Tags: patch

Dear Maintainer,

The default syslog setting for local logging won't work out of the box unless
syslog server is set up specifically. HAproxy intends to send log messages over
UDP to 514 port on localhost, but syslog daemon does not listen that port by
default. However there is /dev/log interface always available with default
syslog configuration.

If haproxy configuration is to be heavily modified chances that logging config
will be modified (together with syslog configuration) are high as well.

Attached patch will ensure that logging of HAproxy will work by default.
--- a/debian/haproxy.cfg
+++ b/debian/haproxy.cfg
@@ -2,7 +2,7 @@
 
 global
 	log 127.0.0.1	local0
-	log 127.0.0.1	local1 notice
+	log /dev/log	local1 notice
 	#log loghost	local0 info
 	maxconn 4096
 	#chroot /usr/share/haproxy

Reply via email to