mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-20 20:50:44 +00:00
MINOR: log: make MAX_SYSLOG_LEN overridable at build time
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.
This commit is contained in:
parent
ca3094d0b1
commit
4e957907aa
@ -48,6 +48,10 @@
|
||||
#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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user