oauth2: improve error message
@@ -325,7 +325,8 @@ char *flb_oauth2_token_get(struct flb_oauth2 *ctx)
ctx->u->flags |= FLB_IO_IPV6;
u_conn = flb_upstream_conn_get(ctx->u);
if (!u_conn) {
- flb_error("[oauth2] could not get an upstream connection");
+ flb_error("[oauth2] could not get an upstream connection to %s:%i",
+ ctx->u->tcp_host, ctx->u->tcp_port);
ctx->u->flags &= ~FLB_IO_IPV6;
return NULL;
}
