fixes remove debugs

This commit is contained in:
2025-06-22 13:45:59 +02:00
parent 881b65f6a5
commit 47eb738400
3 changed files with 4 additions and 5 deletions

View File

@@ -42,12 +42,12 @@ class SpotifyClient
call(path, params)
rescue RestClient::ExceptionWithResponse => e
if e.response.code == 401
puts "token expired, forcing refresh"
Rails.logger.info("token expired, forcing refresh")
refresh_token!(force: true)
begin
call(path, params)
rescue RestClient::ExceptionWithResponse
puts "token dead"
Rails.logger.info("token dead")
LogLoadFailedWorker.perform_async(login.id)
end
end