]> granicus.if.org Git - pgbadger/commitdiff
Fix other case of warning message of empty file.
authorGilles Darold <gilles.darold@dalibo.com>
Fri, 10 Jun 2016 16:27:56 +0000 (18:27 +0200)
committerGilles Darold <gilles.darold@dalibo.com>
Fri, 10 Jun 2016 16:27:56 +0000 (18:27 +0200)
pgbadger

index 3a84d0162bfef6d4a9a43ec645660949eefd88cd..5414adb716de5215963b20d7841d5e679ae9fddb 100755 (executable)
--- 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);