Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix message formatting when max scan count is exceeded. #601

Merged
merged 4 commits into from
Dec 6, 2023

Conversation

monterinio
Copy link
Contributor

No description provided.

Copy link
Collaborator

@Bert-R Bert-R left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!
Added a proposal for a simpler fix.

Comment on lines 283 to 284
"Search timed out after scanning %d messages. Last scanned message timestamp was %s. Adjust your time" +
" span for more results.",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just fix the format?

Suggested change
"Search timed out after scanning %d messages. Last scanned message timestamp was %s. Adjust your time" +
" span for more results.",
"Search timed out after scanning %1$d messages. Last scanned message timestamp was %2$tF %2$tT. Adjust your time" +
" span for more results.",

records.getMessagesScannedCount(),
records.getFinalMessageTimestamp()));
records.finalMessageTimestampFormatted()));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
records.finalMessageTimestampFormatted()));
records.getFinalMessageTimestamp()));

@monterinio
Copy link
Contributor Author

I will adjust as requested today's evening! Thanks.

Copy link
Collaborator

@Bert-R Bert-R left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, except for a very small thing: the two spaces on the next line are accidentally removed.

src/main/java/kafdrop/service/KafkaMonitorImpl.java Outdated Show resolved Hide resolved
Copy link
Collaborator

@Bert-R Bert-R left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants