]> git.donarmstrong.com Git - debbugs.git/commitdiff
track when a record ends and begins
authorDon Armstrong <don@donarmstrong.com>
Sat, 8 Aug 2015 05:28:09 +0000 (22:28 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 10 Aug 2016 20:45:41 +0000 (13:45 -0700)
Debbugs/Log.pm

index 5a7306de38ecfd5ecee354e06961aad60610badd..e97bfac882602c64f3e4a10f29bacefaa99ab407 100644 (file)
@@ -236,6 +236,7 @@ sub read_record
     my $record = {};
 
     while (defined (my $line = <$logfh>)) {
+        $record->{start} = $logfh->tell() if not defined $record->{start};
        chomp $line;
        ++$this->{linenum};
        if (length($line) == 1 and exists $states{ord($line)}) {