Commit 398b6e65 by mingyuan

rails logger

parent 9120072b
...@@ -39,7 +39,7 @@ module Dingtalk::Api ...@@ -39,7 +39,7 @@ module Dingtalk::Api
app.refresh_access_token unless app.access_token_valid? app.refresh_access_token unless app.access_token_valid?
yield params.merge!(access_token: app.access_token) yield params.merge!(access_token: app.access_token)
rescue => e rescue => e
logger.debug e.backtrace Rails.logger.debug e.backtrace
app.refresh_access_token app.refresh_access_token
retry unless (tries -= 1).zero? retry unless (tries -= 1).zero?
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment