fixes
parent
bd7a5fc44d
commit
c8e604d575
|
@ -13,8 +13,6 @@ 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 status: #{new_activities&.status}")
|
||||
create_action = CreateSpotifyActivity.new(user, new_activities)
|
||||
create_action.perform
|
||||
logger.info("Loading for #{user.id} finished with")
|
||||
|
|
|
@ -52,6 +52,7 @@ class SpotifyClient
|
|||
end
|
||||
else
|
||||
Rails.logger.error("SpotifyClient: #{e.message}")
|
||||
Rails.logger.error("SpotifyClient body: #{e.http_body}")
|
||||
raise e
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue