]> granicus.if.org Git - pgbadger/commitdiff
DOn not display warning message of empty log when quiet mode is enable.
authorGilles Darold <gilles.darold@dalibo.com>
Fri, 10 Jun 2016 16:24:26 +0000 (18:24 +0200)
committerGilles Darold <gilles.darold@dalibo.com>
Fri, 10 Jun 2016 16:24:26 +0000 (18:24 +0200)
pgbadger

index 4430a279f2d6156564cb17b65be2b77f7d9ec9d2..29bc0dbd8fb4b67378f72c43386134487a43cf5e 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -509,7 +509,7 @@ if ($#ARGV >= 0) {
                        if (!$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);