增加giteapost请求的logger

This commit is contained in:
sylor_huang@126.com
2020-04-13 13:42:18 +08:00
parent 9f4a1883e4
commit c6ebb6aeea

View File

@@ -17,6 +17,7 @@ class Gitea::ClientService < ApplicationService
# }
def post(url, params={})
puts "[gitea] request params: #{params}"
Rails.logger.info("##########___________post_params__________########{params}")
request_url = [api_url, url].join('').freeze
auth_token = authen_params(params[:token])
response = conn(auth_token).post do |req|