Skip to content

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

Open
dk2k wants to merge 8 commits intoapache:masterfrom
dk2k:dk2k_fix_string_format
Open

Fixes for several string formats, they are based on static analysis.#6306
dk2k wants to merge 8 commits intoapache:masterfrom
dk2k:dk2k_fix_string_format

Conversation

@dk2k
Copy link
Copy Markdown
Contributor

@dk2k dk2k commented Jun 30, 2024

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

log.info("Created class: %s. Uses tearDownTest: %b", name, isToBeRegistered);
} catch (Exception e) {
log.error("{}\tException initialising: ", whoAmI(), name, e);
log.error("%s\tException initialising: %s %s", whoAmI(), name, e.getMessage());
Copy link
Copy Markdown
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 and others added 2 commits October 21, 2024 22:32
…a/sampler/JavaSampler.java

Co-authored-by: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
@dk2k dk2k marked this pull request as ready for review October 21, 2024 19:40
log.info("Created class: {}. Uses tearDownTest: {}", name, isToBeRegistered);
} catch (Exception e) {
log.error("{}\tException initialising: ", whoAmI(), name, e);
log.error("{}\tException initialising: {}", whoAmI(), name, e);
Copy link
Copy Markdown
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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I restored this placeholder

@dk2k dk2k requested review from FSchumacher and vlsi November 23, 2024 17:33
…a/sampler/JavaSampler.java

Co-authored-by: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
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