新增时向grimoirelab推送事件,异常处理,log

This commit is contained in:
xxq250 2023-02-16 16:07:51 +08:00
parent 0725ef74de
commit e92b288f41
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class IssueWebhookJob < ApplicationJob
"username": "#{user.login}" "username": "#{user.login}"
} }
} }
puts "event_json:#{event_json.to_json}"
begin begin
url = URI("http://117.50.185.50:80") url = URI("http://117.50.185.50:80")
http = Net::HTTP.new(url.host, url.port) http = Net::HTTP.new(url.host, url.port)