Bug fix: Modify regex to match what is intended 37/76037/6
authorManuel Buil <mbuil@suse.com>
Wed, 12 Sep 2018 15:43:04 +0000 (17:43 +0200)
committerManuel Buil <mbuil@suse.com>
Wed, 24 Oct 2018 11:11:29 +0000 (13:11 +0200)
The regex line removes the line which was added before:
log4j2.appender.rolling.strategy.type = DefaultRolloverStrategy

because it matches on any line starting with:

log4j2.appender.rolling.s

Change-Id: Ie8b1b5f60982f1026524b7e9519ac675476fee0d
Signed-off-by: Manuel Buil <mbuil@suse.com>
tasks/configure_odl_logs.yml

index d3a007b0d44deb21dbbcd7fe7f1ba5811842d250..8ad14b29abccd5070f3e12934bb291285cd6ac7c 100644 (file)
@@ -42,5 +42,5 @@
       lineinfile:
         path: /opt/opendaylight/etc/org.ops4j.pax.logging.cfg
         line: "log4j2.appender.rolling.strategy.max = {{ log_max_rollover }}"
-        regexp: "^log4j2.appender.rolling.s"
+        regexp: "^log4j2.appender.rolling.strategy.max"
   when: "log_mechanism == 'file'"