Skip to content

Commit

Permalink
debug port and server hostname
Browse files Browse the repository at this point in the history
Signed-off-by: AdheipSingh <[email protected]>
  • Loading branch information
AdheipSingh committed Dec 4, 2024
1 parent 30a7432 commit f13ab68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/out_parseable/parseable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit f13ab68

Please sign in to comment.