You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/fluent/plugin/out_scalyr.rb
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -209,7 +209,9 @@ def write(chunk)
209
209
$log.warne.message
210
210
$log.warn"Discarding buffer chunk without retrying or logging to <secondary>"
211
211
rescueScalyr::Client4xxError=>e
212
-
$log.warn"4XX status code received for request #{index + 1}/#{requests.size}. Discarding buffer without retrying or logging.\n\t#{response.code} - #{e.message}\n\tChunk Size: #{chunk.size}\n\tLog messages this request: #{request[:record_count]}\n\tJSON payload size: #{request[:body].bytesize}\n\tSample: #{request[:body][0,1024]}..."
212
+
x=Net::HTTP.new("google.com",443)
213
+
x.use_ssl=true
214
+
$log.warn"#{x.ca_file}#{x.ca_path} 4XX status code received for request #{index + 1}/#{requests.size}. Discarding buffer without retrying or logging.\n\t#{response.code} - #{e.message}\n\tChunk Size: #{chunk.size}\n\tLog messages this request: #{request[:record_count]}\n\tJSON payload size: #{request[:body].bytesize}\n\tSample: #{request[:body][0,1024]}..."
0 commit comments