Skip to content

Conversation

dk2k
Copy link
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
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
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
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
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 <[email protected]>
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