From: Fabian Keil Date: Wed, 16 Jan 2013 16:29:26 +0000 (+0000) Subject: Fix a warning when a log message is spread across multiple lines X-Git-Tag: v_3_0_20~36 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=80f070872e6036d29ccfe75ae96b9e62ac160220 Fix a warning when a log message is spread across multiple lines --- diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index b22896b4..40c43820 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -8,7 +8,7 @@ # # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/ # -# $Id: privoxy-log-parser.pl,v 1.154 2013/01/13 15:38:54 fabiankeil Exp $ +# $Id: privoxy-log-parser.pl,v 1.155 2013/01/16 16:29:13 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -2426,7 +2426,7 @@ sub stats_loop () { (undef, $time_stamp, $thread, $log_level, $content) = split(/ /, $_, 5); # Skip LOG_LEVEL_CLF - next if ($time_stamp eq "-"); + next if ($time_stamp eq "-" or not defined($log_level)); if (defined($log_level_handlers{$log_level})) {