dcapwell commented on code in PR #1948:
URL: https://github.com/apache/cassandra/pull/1948#discussion_r1003826173
##########
test/simulator/main/org/apache/cassandra/simulator/SimulatorUtils.java:
##########
@@ -40,9 +40,10 @@ public static RuntimeException failWithOOM()
public static void dumpStackTraces(Logger logger)
{
Map<Thread, StackTraceElement[]> threadMap =
Thread.getAllStackTraces();
- threadMap.forEach((thread, ste) -> {
- logger.error("{}:\n {}", thread, Threads.prettyPrint(ste, false,
" ", "\n", ""));
- });
+ String prefix = " ";
+ String delimiter = "\n" + prefix;
Review Comment:
`delimiter` doesn't include the `prefix` so to make the logs clean, I had to
manually add
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]