Increase logging in ignore/replace situations
| | |
| | | if((int)substr($vehicle['num'], 2) != (int)$dbVehicle['num']) { |
| | | if($weight > $dbVehicle['weight']) { |
| | | $replace += 1; |
| | | $logger->warn($vehicle['num'].' voting to replace '.$dbVehicle['num'].' (same ID: '.$id.')'); |
| | | } else { |
| | | $ignore += 1; |
| | | $logger->warn($vehicle['num'].' voting to ignore '.$dbVehicle['num'].' (same ID: '.$id.')'); |
| | | } |
| | | } |
| | | continue; |
| | |
| | | $dbVehicle = $db->getByNum($vehicle['num']); |
| | | if($dbVehicle && $dbVehicle['id'] != $id) { |
| | | $replace += 1; |
| | | $logger->warn($vehicle['id'].' voting to replace '.$dbVehicle['id'].' (same num: '.$vehicle['num'].')'); |
| | | } |
| | | } |
| | | $logger->info('Weight: '.$weight.', ignore: '.$ignore.', replace: '.$replace); |