From 1a37926628a751d2317fc4f093a98d5f345908da Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 19 Dec 2024 09:36:23 -0500 Subject: [PATCH] Log error not info --- app/models/concerns/quickbooks_oauth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/quickbooks_oauth.rb b/app/models/concerns/quickbooks_oauth.rb index 9e03a82..6691cce 100644 --- a/app/models/concerns/quickbooks_oauth.rb +++ b/app/models/concerns/quickbooks_oauth.rb @@ -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