Skip to content

Commit

Permalink
Don't log the token during re-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Nov 17, 2023
1 parent ea5df1f commit 86cd1eb
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 86cd1eb

Please sign in to comment.