]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: to_log erased with unique-id-format
authorWilliam Lallemand <wlallemand@exceliance.fr>
Thu, 9 Aug 2012 14:41:35 +0000 (16:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 9 Aug 2012 17:18:22 +0000 (19:18 +0200)
curproxy->to_log was reset to LW_INIT when using unique-id-format,
so logs looked like option logasap

src/log.c

index 2a3cd168fdb695d3f4da540f1b22245fbf10a684..b1f532a67253707b314f21787108825cad508637 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -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) {