From e654e6660d8413231787d2b98961cbf4fc4442c7 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Tue, 19 Feb 2019 00:03:04 +0000 Subject: [PATCH] Increase logging in ignore/replace situations --- parse.php | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/parse.php b/parse.php index 432b3ef..70f92ed 100644 --- a/parse.php +++ b/parse.php @@ -60,8 +60,10 @@ 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; @@ -70,6 +72,7 @@ $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); -- Gitblit v1.9.1