From 5a923e4b6285a2c19ce472d3baafb21a243eda25 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 11 Nov 2021 12:34:07 +0000 Subject: [PATCH] do not print Pg errors, RaiseError=>1 is enough --- bin/mpd-feeder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mpd-feeder b/bin/mpd-feeder index 3ba9432..9397654 100755 --- a/bin/mpd-feeder +++ b/bin/mpd-feeder @@ -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'); -- 2.39.2