Skip to content

Commit 05bf0e3

Browse files
jorbaumKehrlann
authored andcommitted
fix: Restore null-recent default to Doppler streaming
PR #1348 changed the null-recent behavior from Doppler streaming to Log Cache. This restores the original default so null behaves like false (streaming), matching the prior logs(LogsRequest) contract.
1 parent 21d6d25 commit 05bf0e3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cloudfoundry-operations/src/main/java/org/cloudfoundry/operations/applications/DefaultApplications.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ public Flux<LogMessage> logs(LogsRequest request) {
559559

560560
@Override
561561
public Flux<ApplicationLog> logs(ApplicationLogsRequest request) {
562-
if (request.getRecent() == null || request.getRecent()) {
562+
if (request.getRecent() != null && request.getRecent()) {
563563
return Mono.zip(this.cloudFoundryClient, this.spaceId)
564564
.flatMap(
565565
function(

cloudfoundry-operations/src/test/java/org/cloudfoundry/operations/applications/DefaultApplicationsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ void logsLogCache() {
13781378
requestLogsRecentLogCache(this.logCacheClient, "test-metadata-id");
13791379

13801380
this.applications
1381-
.logs(ApplicationLogsRequest.builder().name("test-application-name").build())
1381+
.logs(ApplicationLogsRequest.builder().name("test-application-name").recent(true).build())
13821382
.as(StepVerifier::create)
13831383
.expectNextMatches(
13841384
log ->

0 commit comments

Comments
 (0)