Handle packets with errors differently

This commit is contained in:
Deon George
2021-08-13 23:46:48 +10:00
parent 05f387aab7
commit 385290d18c
3 changed files with 25 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ final class Receive extends Item
ProcessPacket::dispatchSync($msg);
}
if ($po->hasErrors) {
if ($po->errors->count()) {
Log::info(sprintf('%s: - Not deleting packet [%s], as it has validation errors',__METHOD__,$this->file));
// If we want to keep the packet, we could do that logic here