]> git.ktnx.net Git - mpd-feeder.git/commitdiff
do not print Pg errors, RaiseError=>1 is enough
authorDamyan Ivanov <dmn@debian.org>
Thu, 11 Nov 2021 12:34:07 +0000 (12:34 +0000)
committerDamyan Ivanov <dmn@debian.org>
Thu, 11 Nov 2021 12:34:07 +0000 (12:34 +0000)
bin/mpd-feeder

index 3ba943234f6900e1ab32abb342edfa7e7a2931fb..939765417c8939be8c0020522ef58c74c80d52ed 100755 (executable)
@@ -159,7 +159,7 @@ use Net::Async::MPD;
 
         $db = DBI->connect( "dbi:Pg:dbname=" . $opt->db_path,
             $opt->db_user, $opt->db_password,
-            { RaiseError => 1, AutoCommit => 1 } );
+            { RaiseError => 1, PrintError => 0, AutoCommit => 1 } );
 
         $log->info( "Connected to database " . $opt->db_path );
         $db_generation = $self->db_get_option('generation');