From 7f4de4f0f337e4d9df658b6f88fc0a1995df540a Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 27 Sep 2018 17:00:48 -0600 Subject: [PATCH] Changed REGEXs to look for updated tags in log file --- etc/logwatch/scripts/services/cfddns | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/etc/logwatch/scripts/services/cfddns b/etc/logwatch/scripts/services/cfddns index 9855a98..97369ec 100644 --- a/etc/logwatch/scripts/services/cfddns +++ b/etc/logwatch/scripts/services/cfddns @@ -69,10 +69,7 @@ elsif ($detailLevel >= 1 && $detailLevel <= 4) { if ($ThisLine =~ /\-- \[ERROR\] /) { print $ThisLine; } - elsif ($ThisLine =~ /up-to-date./) { - print $ThisLine; - } - elsif ($ThisLine =~ /needs updating.../) { + elsif ($ThisLine =~ /\-- \[STATUS\] /) { print $ThisLine; } elsif ($ThisLine =~ /\-- \[SUCCESS\] /) { @@ -88,10 +85,7 @@ elsif ($detailLevel == 5) { if ($ThisLine =~ /\-- \[ERROR\] /) { print $ThisLine; } - elsif ($ThisLine =~ /up-to-date./) { - print $ThisLine; - } - elsif ($ThisLine =~ /needs updating.../) { + elsif ($ThisLine =~ /\-- \[STATUS\] /) { print $ThisLine; } elsif ($ThisLine =~ /\-- \[SUCCESS\] /) {