More debugging to know more about failed echomail parsing because of no zone.

This commit is contained in:
Deon George 2023-01-01 13:35:56 +11:00
parent 6c97eb2d81
commit 06f814395c

View File

@ -139,12 +139,13 @@ class MessageProcess implements ShouldQueue
// Else we are echomail
} else {
Log::debug(sprintf('%s:! Looking for echomail area [%s] for mail from [%s]',self::LOGKEY,$this->msg->echoarea,$this->msg->fboss));
$ea = Echoarea::where('name',strtoupper($this->msg->echoarea))
->where('domain_id',$this->msg->fboss_o->zone->domain_id)
->single();
if (! $ea) {
Log::alert(sprintf('%s:! Echo area [%s] doesnt exist for zone [%d]',self::LOGKEY,$this->msg->echoarea,$this->msg->fboss_o->zone->zone_id));
Log::alert(sprintf('%s:! Echoarea [%s] doesnt exist for zone [%d]',self::LOGKEY,$this->msg->echoarea,$this->msg->fboss_o->zone->zone_id));
return;
}