I'm pushing a manifest to CF with the cloudfoundry-operations library like this:
final PushApplicationManifestRequest pushRequest = PushApplicationManifestRequest.builder()
.manifest(applicationManifest)
.build();
final Mono<Void> pushManifest = cfOperations.applications().pushManifest(pushRequest);
pushManifest.block(); // I want to block at this point
The issue I have is that this operation can take several minutes and I get no feedback in between, there's no output. I would like to see more output on what's going on (is it uploading, staging...)
Is there a simple way of seeing more log output? Like, are there some configuration parameters for the CF client I can adjust for this?
I could sieve through the code and adjust slf4j configuration to print more information, but feels fragile and complex.
cloudfoundry-operationsto stream logs in a separate thread.cloudfoundry-client.operationsto DEBUG and see if that's helpful, i.e.logging.level.cloudfoundry-client.operations=DEBUG. It will give you some basics like when the push starts and finishes. The full details of what happens during staging, like buildpack output would need to come from the platform's log stream though. So you'd need essentially a separate flow that kicks off for the app after you push which pulls the logs for that application.