Log error not info

This commit is contained in:
2024-12-19 09:36:23 -05:00
committed by GitHub
parent dac9a7c756
commit 1a37926628

View File

@@ -21,7 +21,7 @@ module QuickbooksOauth
begin
yield oauth_access_token
rescue OAuth2::Error, Quickbooks::AuthorizationFailure => ex
Rails.logger.info("QuickbooksOauth.perform: #{ex.message}")
Rails.logger.error("QuickbooksOauth.perform: #{ex.message}")
# to prevent an infinite loop here keep a counter and bail out after N times...
attempts += 1