]> granicus.if.org Git - pgbadger/commitdiff
Fix an other major bug introduced with journalctl code that prevent the use of the...
authorDarold Gilles <gilles@darold.net>
Mon, 18 Jan 2016 20:45:17 +0000 (21:45 +0100)
committerDarold Gilles <gilles@darold.net>
Mon, 18 Jan 2016 20:45:17 +0000 (21:45 +0100)
pgbadger

index 72f16e83171cff817fc774ad6a244addf9c827b5..703804aa8a272b282ff2b84c18f5f432441450e4 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -1327,7 +1327,7 @@ if ( ($#given_log_files >= 0) && (($queue_size > 1) || ($job_per_file > 1)) ) {
                }
 
                # Do not use split method with compressed files
-               if ( ($queue_size > 1) && ($logfile !~ /\.(gz|bz2|zip|xz)$/i) && ($logfile !~ /\Q$journalctl_cmd\E/) ) {
+               if ( ($queue_size > 1) && ($logfile !~ /\.(gz|bz2|zip|xz)$/i) && (!$journalctl_cmd || ($logfile !~ /\Q$journalctl_cmd\E/)) ) {
                        # Create multiple processes to parse one log file by chunks of data
                        my @chunks = &split_logfile($logfile);
                        &logmsg('DEBUG', "The following boundaries will be used to parse file $logfile, " . join('|', @chunks));