Skip to content

Commit

Permalink
Fix message formatting when max scan count is exceeded. (#601)
Browse files Browse the repository at this point in the history
* Fix message formatting when max scan count is exceeded.

* Fix message formatting when max scan count is exceeded.

* Update src/main/java/kafdrop/service/KafkaMonitorImpl.java

Co-authored-by: Bert Roos <[email protected]>

* Address max line length issue

---------

Co-authored-by: Mikolajczak Mariusz <[email protected]>
Co-authored-by: Bert Roos <[email protected]>
  • Loading branch information
3 people authored Dec 6, 2023
1 parent bc8d306 commit 35a9350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/kafdrop/service/KafkaMonitorImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ public SearchResultsVO searchMessages(String topic,
case EXCEEDED_MAX_SCAN_COUNT:
results.setCompletionDetails(
String.format(
"Search timed out after scanning %d messages. Last scanned message timestamp was %d. Adjust your time" +
" span for more results.",
"Search timed out after scanning %d messages. Last scanned message timestamp was %2$tF %2$tT." +
" Adjust your time span for more results.",
records.getMessagesScannedCount(),
records.getFinalMessageTimestamp()));
break;
Expand Down

0 comments on commit 35a9350

Please sign in to comment.