diff --git a/plugins/rcpt_mysql b/plugins/rcpt_mysql index 912ac81..dd2c3dd 100644 --- a/plugins/rcpt_mysql +++ b/plugins/rcpt_mysql @@ -35,7 +35,7 @@ sub createDSN { my $self = shift; - my $dsn = "DBI:MariaDB:database=" . $self->{database} . ";host=" . $self->{host} . ";port=" . $self->{port}; + my $dsn = "dbi:MariaDB(RaiseError=>0):database=" . $self->{database} . ";host=" . $self->{host} . ";port=" . $self->{port}; $self->{dsn} = $dsn; $self->log(LOGDEBUG, "created DSN " . $self->{dsn}); @@ -179,6 +179,8 @@ sub askDatabase { my $self = shift; my $recipient = shift; + + $self->log(LOGDEBUG, "use DSN " . $self->{dsn}); my $dbh = DBI::connect($self->{dsn}, $self->{user}, $self->{pass}); if ($dbh->err())