From f13ab687fd6c92e29dc45057be0e058078e6651d Mon Sep 17 00:00:00 2001 From: AdheipSingh Date: Thu, 5 Dec 2024 02:43:32 +0530 Subject: [PATCH] debug port and server hostname Signed-off-by: AdheipSingh --- plugins/out_parseable/parseable.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/out_parseable/parseable.c b/plugins/out_parseable/parseable.c index 3be51488836..bd0fab2c38b 100644 --- a/plugins/out_parseable/parseable.c +++ b/plugins/out_parseable/parseable.c @@ -32,6 +32,8 @@ static int cb_parseable_init(struct flb_output_instance *ins, return -1; } + flb_plg_info(ctx->ins, "Configured port: %d", ctx->port); + ctx->upstream = flb_upstream_create(config, ctx->server, ctx->port, @@ -183,12 +185,14 @@ static void cb_parseable_flush(struct flb_event_chunk *event_chunk, } } else { - flb_plg_error(ctx->ins, "P_Stream is not set. Cannot determine the value for X-P-Stream."); + flb_plg_error(ctx->ins, "Stream is not set. Cannot determine the value for X-P-Stream."); flb_sds_destroy(body); msgpack_unpacked_destroy(&result); FLB_OUTPUT_RETURN(FLB_ERROR); } + flb_plg_info(ctx->ins, "Creating upstream with server: %s, port: %d", ctx->server, ctx->port); + /* Get upstream connection */ u_conn = flb_upstream_conn_get(ctx->upstream); if (!u_conn) {