Skip to content

Commit 2dd7eb3

Browse files
jaygel179darinhoward
authored andcommitted
API Ruby - Ignore SLL Error from HTTP transport (#30)
* API Ruby - Ignore SLL Error from HTTP transport * logging typo
1 parent a45b579 commit 2dd7eb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/stackify/agent_http_sender.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ def send_request log_group
1919
begin
2020
# Convert data into binary and send it to agent
2121
message = Stackify::LogGroup.encode(log_group)
22-
conn = Faraday.new(proxy: Stackify.configuration.proxy)
22+
conn = Faraday.new(proxy: Stackify.configuration.proxy, ssl: { verify: false })
2323
@response = conn.post do |req|
2424
req.url URI(Stackify.configuration.http_endpoint + Stackify.configuration.agent_log_url)
2525
req.headers = HEADERS
2626
req.body = message
2727
end
2828
if @response.try(:status) == 200
29-
Stackify.internal_log :debug, "[AgentHTTPSender]: Successfully send message via unix domain socket."
29+
Stackify.internal_log :debug, "[AgentHTTPSender]: Successfully send message via http request."
3030
return OpenStruct.new({status: 200, msg: 'OK'})
3131
else
3232
Stackify.internal_log :debug, "[AgentHTTPSender] Sending failed."

0 commit comments

Comments
 (0)