feat(logging): migrate VikonIntegration to vikon channel

This commit is contained in:
F4ilji
2026-07-05 23:13:51 +05:00
parent dfe8de0680
commit 720aa4d0ae
10 changed files with 34 additions and 34 deletions
@@ -24,7 +24,7 @@ class UpdatePartAction
{
$config = $this->modulesConfig[$moduleId] ?? throw new \RuntimeException("Неизвестный модуль: {$moduleId}");
Log::info('Vikon: starting part update', ['module' => $moduleId, 'part' => $part]);
Log::channel('vikon')->info('Vikon: starting part update', ['module' => $moduleId, 'part' => $part]);
// Step 1: Request generation
$genResponse = $this->http->postWithToken(
@@ -40,7 +40,7 @@ class UpdatePartAction
$operationIdentity = $genBody['operation_identity'];
Log::info('Vikon: part generation requested', ['operation' => $operationIdentity]);
Log::channel('vikon')->info('Vikon: part generation requested', ['operation' => $operationIdentity]);
// Step 2: Poll status
$pollResult = $this->pollStatus->run($operationIdentity, $accessToken);
@@ -98,7 +98,7 @@ class UpdatePartAction
$this->cleanupPostSync($modulePath);
}
Log::info('Vikon: part update complete', ['module' => $moduleId, 'part' => $part, 'synced' => $syncedCount]);
Log::channel('vikon')->info('Vikon: part update complete', ['module' => $moduleId, 'part' => $part, 'synced' => $syncedCount]);
return [
'success' => true,
@@ -222,7 +222,7 @@ class UpdatePartAction
}
if ($removed > 0) {
Log::info('Vikon: cleaned up post-sync', ['removed' => $removed, 'path' => $modulePath]);
Log::channel('vikon')->info('Vikon: cleaned up post-sync', ['removed' => $removed, 'path' => $modulePath]);
}
}
}