more debugging

This commit is contained in:
2025-06-22 13:32:22 +02:00
parent 2b1ddcf8c8
commit 881b65f6a5
2 changed files with 23 additions and 15 deletions

View File

@@ -13,6 +13,8 @@ class LoadUserActivitiesJob < ApplicationJob
client = SpotifyClient.new(login)
last_spotify_activity_at = latest_activity_iso(login.platform)
new_activities = client.load_since(last_spotify_activity_at)
# log some info about the response with status and parts of the body
Rails.logger.info("Response: #{new_activities}")
create_action = CreateSpotifyActivity.new(user, new_activities)
create_action.perform
logger.info("Loading for #{user.id} finished with #{new_activities.size} new activities")