feat(logging): migrate VK API jobs and services to vk channel

This commit is contained in:
F4ilji
2026-07-05 23:26:41 +05:00
parent 720aa4d0ae
commit 41b00fcdae
9 changed files with 53 additions and 54 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class UpdateVkPost implements ShouldQueue
$vkService = new VkService();
$vkService->updatePost($postRelation->vk_post_id, $this->title, $this->text, $this->images, $this->publish_date);
} catch (\Exception $e) {
Log::error('Ошибка при создании поста: ' . $e->getMessage());
Log::channel('vk')->error('Failed to update VK post', ['error' => $e->getMessage()]);
throw $e; // Перебрасываем исключение для повторной попытки
}
}