From 57402c47dbb03a5fca2f9b1f4c990181f9840add Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Mon, 27 Jan 2025 23:21:41 +0100 Subject: [PATCH] chore: some debug log messages --- plugins/rcpt_mysql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/rcpt_mysql b/plugins/rcpt_mysql index ee07322..3c0eb1e 100644 --- a/plugins/rcpt_mysql +++ b/plugins/rcpt_mysql @@ -188,6 +188,8 @@ sub askDatabase { my $self = shift; my $recipient = shift; + + $self->log(LOGDEBUG, "asking database for: $recipient "); if (length($self->{dsn}) == 0) { @@ -230,6 +232,7 @@ sub rcpt_to { my ($self, $transaction, $recipient) = @_; # 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; # ask the cache for results