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

Fixes for several string formats, they are based on static analysis. #6306

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dk2k
Copy link
Contributor

@dk2k dk2k commented Jun 30, 2024

Fixes for several string formats, they are based on static analysis.

} catch (Exception e) {
log.error("{}\tException initialising: ", whoAmI(), name, e);
log.error("%s\tException initialising: %s %s", whoAmI(), name, e.getMessage());
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
log.error("%s\tException initialising: %s %s", whoAmI(), name, e.getMessage());
log.error("{}\tException initialising: {} {}", whoAmI(), name, e.getMessage());

@dk2k dk2k marked this pull request as draft August 6, 2024 18:18
@dk2k dk2k marked this pull request as ready for review August 6, 2024 18:50
@dk2k dk2k requested a review from vlsi August 6, 2024 18:50
@dk2k dk2k marked this pull request as draft August 7, 2024 07:34
@dk2k dk2k marked this pull request as ready for review October 21, 2024 19:40
} catch (Exception e) {
log.error("{}\tException initialising: ", whoAmI(), name, e);
log.error("{}\tException initialising: {}", whoAmI(), name, e);
Copy link
Contributor

Choose a reason for hiding this comment

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

While the text in the message looks like it is missing a placeholder, I would refrain from adding it here. Adding a placeholder will loose the stacktrace, which could be helpful identifying the root cause.

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.

3 participants