chore: some debug log messages

This commit is contained in:
Dominik Meyer 2025-01-27 23:21:41 +01:00
parent ebe62e577d
commit 57402c47db
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97

View File

@ -189,6 +189,8 @@ sub askDatabase
my $self = shift; my $self = shift;
my $recipient = shift; my $recipient = shift;
$self->log(LOGDEBUG, "asking database for: $recipient ");
if (length($self->{dsn}) == 0) if (length($self->{dsn}) == 0)
{ {
$self->log(LOGERROR, "DSN not valid not checking recipient in database"); $self->log(LOGERROR, "DSN not valid not checking recipient in database");
@ -230,6 +232,7 @@ sub rcpt_to {
my ($self, $transaction, $recipient) = @_; my ($self, $transaction, $recipient) = @_;
# some basic validations # some basic validations
$self->log(LOGDEBUG, "missing recipient host or recipient user (" . $recipient->host . "/" . $recipient->user . ")") unless $recipient->host && $recipient->user;
return DECLINED unless $recipient->host && $recipient->user; return DECLINED unless $recipient->host && $recipient->user;
# ask the cache for results # ask the cache for results