out_http: do not debug proxy if not enabled
@@ -114,8 +114,10 @@ static int http_post(struct flb_out_http *ctx,
ctx->proxy, 0);
+ if (c->proxy.host) {
flb_plg_debug(ctx->ins, "[http_client] proxy host: %s port: %i",
c->proxy.host, c->proxy.port);
+ }
/* Allow duplicated headers ? */
flb_http_allow_duplicated_headers(c, ctx->allow_dup_headers);
