Skip to content

Commit a4f861d

Browse files
committed
Fix end date of parsing with jsonlog format. Thanks to jw1u1 for the report.
1 parent 44f7993 commit a4f861d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pgbadger

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3896,7 +3896,8 @@ sub process_file
38963896
# Skip unwanted lines
38973897
my $res = &skip_unwanted_line();
38983898
next if ($res == 1);
3899-
if ($res == -1) {
3899+
if ($res == -1)
3900+
{
39003901
&update_progress_bar($tmpoutfile, $nlines, $stop_offset, $totalsize, \$cursize, \$old_queries_count, \$old_errors_count, $fmt);
39013902
$getout = 2;
39023903
last CSVLOOP;
@@ -4117,6 +4118,12 @@ sub process_file
41174118
# Skip unwanted lines
41184119
my $res = &skip_unwanted_line();
41194120
next if ($res == 1);
4121+
if ($res == -1)
4122+
{
4123+
&update_progress_bar($tmpoutfile, $nlines, $stop_offset, $totalsize, \$cursize, \$old_queries_count, \$old_errors_count, $fmt);
4124+
$getout = 2;
4125+
last;
4126+
}
41204127

41214128
# Jump to the last line parsed if required
41224129
next if (($incremental || $last_parsed) && !&check_incremental_position($fmt, $prefix_vars{'t_timestamp'}, $line));

0 commit comments

Comments
 (0)