Skip to content

Commit

Permalink
Merge pull request #3 from Adam-Grare/dont_log_token
Browse files Browse the repository at this point in the history
Don't log the token during re-auth

(cherry picked from commit 39fc6da)
(cherry picked from commit 4325267)
  • Loading branch information
Fryguy committed Oct 1, 2024
1 parent 8dbf94b commit c6f8ab3
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ def call_api(http_method, path, opts = {})
case e.code
when AUTH_TOKEN_INVALID
begin
_log.warn("doing re-login: token is #{@token}")
login
set_auth_token
super
rescue
# in case re-login did not help, throw error
_log.error("re-login was unsuccessful: token is #{@token}")
raise # throw the last error
end
else
Expand Down

0 comments on commit c6f8ab3

Please sign in to comment.