Removing logging of no rider out of controller and into service. #554
This commit is contained in:
parent
4337864c2c
commit
50f5896014
2 changed files with 3 additions and 13 deletions
|
|
@ -1090,12 +1090,6 @@ class APIController extends Controller implements LoggedController
|
|||
// break out of loop
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
// log hub into hub_filter_log
|
||||
$hub_filter_logger->logFilteredHub($nearest_hub['hub'], 'no_available_rider');
|
||||
// continue to go through list to find hub with an available rider
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2634,12 +2628,6 @@ class APIController extends Controller implements LoggedController
|
|||
// break out of loop
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
// log hub into hub_filter_log
|
||||
$hub_filter_logger->logFilteredHub($nearest_hub['hub'], 'no_available_rider');
|
||||
// continue to go through list to find hub with an available rider
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -219,9 +219,11 @@ class HubSelector
|
|||
foreach ($riders as $rider)
|
||||
{
|
||||
if ($rider->isAvailable())
|
||||
$avail_rider_count = $avail_rider_count +1;
|
||||
$avail_rider_count = $avail_rider_count + 1;
|
||||
}
|
||||
|
||||
error_log('HUB ' . $hub->getID() . ' RIDER COUNT' . $avail_rider_count);
|
||||
|
||||
if ($avail_rider_count > 0)
|
||||
$results[] = [
|
||||
'hub' => $hub,
|
||||
|
|
|
|||
Loading…
Reference in a new issue