]> granicus.if.org Git - pgbadger/commitdiff
Fix debug message "Start parsing at offset"
authorDarold Gilles <gilles@darold.net>
Thu, 27 Feb 2014 09:02:44 +0000 (10:02 +0100)
committerDarold Gilles <gilles@darold.net>
Thu, 27 Feb 2014 09:02:44 +0000 (10:02 +0100)
pgbadger

index 515f465be679f71eb5a7cbc407e1e2affa6919ae..71880a7951bb35c7e188d937e6e70fd3f5c75025 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -1566,6 +1566,7 @@ sub process_file
                my $cur_pid = '';
                my @matches = ();
                my $goon = 0;
+               $start_offset ||= 0;
                &logmsg('DEBUG', "Start parsing at offset $start_offset of file $logfile");
                if ($start_offset) {
                        $lfile->seek($start_offset, 0);