Hi,

Am 2013-04-17 14:40, schrieb Chris:

> in /usr/share/logwatch/scrpts/services/php and this has fixed this problem 
> for me.
> For the hardcoded type Europe/Berlin we can't use %Z because the output would 
> be: CEST on my system and won't match Europe/Berlin.
> 
> I don't know if there is a better way of matching this timezone instead of 
> hardcoding it but at least it works for me.
> 

could you please try attached patch?

thanks
WM
diff --git a/scripts/services/php b/scripts/services/php
index adc0147..f8a5fe9 100644
--- a/scripts/services/php
+++ b/scripts/services/php
@@ -62,7 +62,7 @@ pop(@message_categories) if $detail < 5;
 while(<>) {
     my $line = $_;
     # skipping messages that are not within the requested range
-    next unless $line =~ /^\[($filter)\]/o;
+    next unless $line =~ /^\[($filter)(?: \w+\/\w+|)\]/o;
     $1 =~ /(\d+)-(\w+)-(\d+) (\d+):(\d+):(\d+)/;
     my $time;
 

Reply via email to