From: Gilles Darold Date: Fri, 10 Jun 2016 16:27:56 +0000 (+0200) Subject: Fix other case of warning message of empty file. X-Git-Tag: v8.2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d30fcc9e2aa55226bb3814b204a5d90ce2c64a3b;p=pgbadger Fix other case of warning message of empty file. --- diff --git a/pgbadger b/pgbadger index 3a84d01..5414adb 100755 --- a/pgbadger +++ b/pgbadger @@ -552,7 +552,7 @@ if ($logfile_list) { } elsif (!$remote_host) { localdie("FATAL: logfile $file must exist!\n") if (not -f $file); if (-z $file) { - print "WARNING: file $file is empty\n"; + print "WARNING: file $file is empty\n" if (!$quiet); next; } push(@log_files, $file);