MSIN-4328 — Remove logging of 'push_skip' in participant sync to reduce spam during preparation. Blocked participants will still be visible in the UI without cluttering logs.
This commit is contained in:
@ -1357,30 +1357,8 @@ function fxChronotrackApiSyncPushPrepare($intEveId) {
|
||||
$tabParticipants = fxChronotrackApiSyncLoadMs1Participants($intEveId);
|
||||
$arrClass = fxChronotrackApiSyncClassifyParticipants($tabParticipants, $arrRaceMap, $intCtEventId);
|
||||
|
||||
$intSkipLogged = 0;
|
||||
foreach ($arrClass['blocked'] as $arrBlocked) {
|
||||
if ($intSkipLogged >= 50) {
|
||||
break;
|
||||
}
|
||||
fxChronotrackApiSyncLog(
|
||||
$intEveId,
|
||||
intval($arrBlocked['par_id'] ?? 0),
|
||||
'push_skip',
|
||||
'error',
|
||||
($arrBlocked['code'] ?? 'blocked') . ' — external_id=' . ($arrBlocked['external_id'] ?? '')
|
||||
. ' — ' . ($arrBlocked['message'] ?? '')
|
||||
);
|
||||
$intSkipLogged++;
|
||||
}
|
||||
if ($arrClass['blocked_count'] > $intSkipLogged) {
|
||||
fxChronotrackApiSyncLog(
|
||||
$intEveId,
|
||||
0,
|
||||
'push_skip',
|
||||
'error',
|
||||
'… +' . ($arrClass['blocked_count'] - $intSkipLogged) . ' exclus non détaillés'
|
||||
);
|
||||
}
|
||||
// MSIN-4328 — ne plus journaliser push_skip ici (spam à chaque prepare/auto).
|
||||
// Les exclus restent dans l’UI « Détails & exclus » (preview), jamais dans le lot poussé.
|
||||
|
||||
// MSIN-4328 — ne pousser que les éligibles modifiés depuis last_push_at
|
||||
$strLastPushAt = trim((string)($arrConfig['last_push_at'] ?? ''));
|
||||
|
||||
Reference in New Issue
Block a user