Fix a warning when a log message is spread across multiple lines
authorFabian Keil <fk@fabiankeil.de>
Wed, 16 Jan 2013 16:29:26 +0000 (16:29 +0000)
committerFabian Keil <fk@fabiankeil.de>
Wed, 16 Jan 2013 16:29:26 +0000 (16:29 +0000)
tools/privoxy-log-parser.pl

index b22896b..40c4382 100755 (executable)
@@ -8,7 +8,7 @@
 #
 # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/
 #
 #
 # 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
 #
 # 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
         (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})) {
 
 
         if (defined($log_level_handlers{$log_level})) {