Browse Source

增加giteapost请求的logger

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
c6ebb6aeea
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/services/gitea/client_service.rb

+ 1
- 0
app/services/gitea/client_service.rb 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|


Loading…
Cancel
Save