mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-10 06:49:49 +08:00
增加giteapost请求的logger
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user