debugging added
parent
162fff8a2e
commit
2b1ddcf8c8
|
@ -8,6 +8,9 @@ class CreateSpotifyActivity
|
||||||
|
|
||||||
# rubocop:disable Metrics/AbcSize
|
# rubocop:disable Metrics/AbcSize
|
||||||
def perform
|
def perform
|
||||||
|
# log some info about the response with status and parts of the body
|
||||||
|
Rails.logger.info("Response status: #{response["status"]}")
|
||||||
|
Rails.logger.info("Response body: #{response["body"]}")
|
||||||
counts = response["items"].size
|
counts = response["items"].size
|
||||||
Rails.logger.info("Saving #{counts} activities")
|
Rails.logger.info("Saving #{counts} activities")
|
||||||
response["items"].reverse.each do |play|
|
response["items"].reverse.each do |play|
|
||||||
|
|
Loading…
Reference in New Issue