From 4bfd89d358c2e3574b6b25a32648b6972e2a3a5b Mon Sep 17 00:00:00 2001 From: stephan Date: Wed, 15 Jul 2026 09:14:49 -0400 Subject: [PATCH] =?UTF-8?q?MSIN-4328=20=E2=80=94=20Remove=20logging=20of?= =?UTF-8?q?=20'push=5Fskip'=20in=20participant=20sync=20to=20reduce=20spam?= =?UTF-8?q?=20during=20preparation.=20Blocked=20participants=20will=20stil?= =?UTF-8?q?l=20be=20visible=20in=20the=20UI=20without=20cluttering=20logs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- php/chronotrack_api/fx_chronotrack_sync.php | 26 ++------------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/php/chronotrack_api/fx_chronotrack_sync.php b/php/chronotrack_api/fx_chronotrack_sync.php index a3ba7d9..70d42b5 100644 --- a/php/chronotrack_api/fx_chronotrack_sync.php +++ b/php/chronotrack_api/fx_chronotrack_sync.php @@ -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'] ?? ''));