more debugging
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user