Skip to content
Snippets Groups Projects
Commit 5537b648 authored by Jared Hancock's avatar Jared Hancock
Browse files

mail: Add useful error log on failed mail processing

parent 79f3c6b0
No related branches found
No related tags found
No related merge requests found
......@@ -728,11 +728,18 @@ class MailFetcher {
return true;
}
//TODO: Log error..
// Log an error to the system logs
$mailbox = Email::lookup($vars['emailId']);
$ost->logError('Mail Processing Exception', sprintf(
"Mailbox: %s\nError(s): %s",
$mailbox->getEmail(),
print_r($errors, true)
), false);
// Indicate failure of mail processing
return null;
}
return $ticket;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment