BUG/MINOR: to_log erased with unique-id-format

curproxy->to_log was reset to LW_INIT when using unique-id-format,
so logs looked like option logasap
This commit is contained in:
William Lallemand 2012-08-09 16:41:35 +02:00 committed by Willy Tarreau
parent a9fddca778
commit 1dc00efedc

View File

@ -309,7 +309,7 @@ void parse_logformat_string(char *str, struct proxy *curproxy, struct list *list
struct logformat_node *tmplf, *back;
int options = 0;
curproxy->to_log = LW_INIT;
curproxy->to_log |= LW_INIT;
/* flush the list first. */
list_for_each_entry_safe(tmplf, back, list_format, list) {