From: Darold Gilles Date: Thu, 27 Feb 2014 09:02:44 +0000 (+0100) Subject: Fix debug message "Start parsing at offset" X-Git-Tag: v5.1~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38e0333fd222eb411b2cfa5dc619d24249a01eee;p=pgbadger Fix debug message "Start parsing at offset" --- diff --git a/pgbadger b/pgbadger index 515f465..71880a7 100755 --- 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);