]> granicus.if.org Git - postgresql/commitdiff
pg_restore: Make not verbose by default
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 10 Apr 2019 09:45:00 +0000 (11:45 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 10 Apr 2019 09:45:00 +0000 (11:45 +0200)
This was accidentally changed in
cc8d41511721d25d557fc02a46c053c0a602fed0.

Reported-by: Christoph Berg <myon@debian.org>
src/bin/pg_dump/pg_restore.c

index 8af6276e643e62f897951cbfcbb1b2aea4ed081c..9a5b17758f995a9f8f81c3873857d79fc425dc72 100644 (file)
@@ -131,6 +131,7 @@ main(int argc, char **argv)
        };
 
        pg_logging_init(argv[0]);
+       pg_logging_set_level(PG_LOG_WARNING);
        set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_dump"));
 
        init_parallel_dump_utils();
@@ -250,6 +251,7 @@ main(int argc, char **argv)
 
                        case 'v':                       /* verbose */
                                opts->verbose = 1;
+                               pg_logging_set_level(PG_LOG_INFO);
                                break;
 
                        case 'w':