chore: some debug log messages
This commit is contained in:
parent
ebe62e577d
commit
57402c47db
@ -188,6 +188,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)
|
||||||
{
|
{
|
||||||
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user