]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: log: make MAX_SYSLOG_LEN overridable at build time
authorWilly Tarreau <w@1wt.eu>
Fri, 27 Jun 2014 16:08:49 +0000 (18:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 Jun 2014 16:13:53 +0000 (18:13 +0200)
This value was set in log.h without any #ifndef around, so when one
wanted to change it, a patch was needed. Let's move it to defaults.h
with the usual #ifndef so that it's easier to change it.

include/common/defaults.h
include/types/log.h

index 5508314cbec759fdc0b920a506c5a80e2c0a6543..6e5840ee0f24edc8eace5378ac77320dbafee9a7 100644 (file)
 #define CAPTURE_LEN     64
 #endif
 
+#ifndef MAX_SYSLOG_LEN
+#define MAX_SYSLOG_LEN          1024
+#endif
+
 // maximum line size when parsing config
 #ifndef LINESIZE
 #define LINESIZE       2048
index 8ee8d7c644b49f34357fe85d021f06eef599eed1..b3288bd692ad4bd06feabb7585cfd4f0902cf285 100644 (file)
@@ -28,7 +28,6 @@
 #include <common/config.h>
 #include <common/mini-clist.h>
 
-#define MAX_SYSLOG_LEN          1024
 #define NB_LOG_FACILITIES       24
 #define NB_LOG_LEVELS           8
 #define SYSLOG_PORT             514