mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-07 05:51:48 +00:00
MINOR: log: add logger flags
Logger struct may benefit from having a "flags" struct member to set or remove different logger states. For that, we reuse an existing 4 bytes hole in the logger struct to store a 2 bytes flags integer, leaving the struct with a 2-bytes hole now.
This commit is contained in:
parent
a6e38465fb
commit
33f3bec7ee
@ -231,10 +231,16 @@ struct log_target {
|
||||
uint16_t flags;
|
||||
};
|
||||
|
||||
enum logger_flags {
|
||||
LOGGER_FL_NONE = 0x00,
|
||||
};
|
||||
|
||||
struct logger {
|
||||
struct list list;
|
||||
struct log_target target;
|
||||
struct smp_info lb;
|
||||
uint16_t flags;
|
||||
/* 2 bytes hole */
|
||||
enum log_fmt format;
|
||||
int facility;
|
||||
int level;
|
||||
|
Loading…
Reference in New Issue
Block a user