测试commits报错

This commit is contained in:
sylor_huang@126.com
2020-04-22 15:11:54 +08:00
parent dc5bf457f6
commit f9f5b9fdb7
3 changed files with 5 additions and 2 deletions

View File

@@ -28,7 +28,6 @@ class Gitea::ClientService < ApplicationService
end
def get(url, params={})
Rails.logger.info("##########__________get_params__________########{params}")
auth_token = authen_params(params[:token])
conn(auth_token).get do |req|
req.url full_url(url)

View File

@@ -24,6 +24,8 @@ class Gitea::Repository::Commits::ListService < Gitea::ClientService
end
def render_result(response)
Rails.logger.info("#####___________response.status_________##########{response.status}")
Rails.logger.info("#####___________response.body_________##########{response.body}")
body = JSON.parse(response.body)
case response.status
when 200