File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
plugins/out_kinesis_firehose Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 4444#include "firehose.h"
4545#include "firehose_api.h"
4646
47+ int flb_http_client_debug_setup (struct flb_callback * cb_ctx , struct mk_list * props );
48+
4749static struct flb_aws_header content_type_header = {
4850 .key = "Content-Type" ,
4951 .key_len = 12 ,
@@ -288,6 +290,10 @@ static int cb_firehose_init(struct flb_output_instance *ins,
288290 ctx -> firehose_client -> proxy = NULL ;
289291 ctx -> firehose_client -> static_headers = & content_type_header ;
290292 ctx -> firehose_client -> static_headers_len = 1 ;
293+ if (flb_http_client_debug_setup (ctx -> firehose_client -> http_cb_ctx , & ins -> properties ) < 0 ) {
294+ flb_plg_error (ctx -> ins , "AWS HTTP client debug initialization error" );
295+ goto error ;
296+ }
291297
292298 struct flb_upstream * upstream = flb_upstream_create (config , ctx -> endpoint ,
293299 ctx -> port , FLB_IO_TLS ,
You can’t perform that action at this time.
0 commit comments