Commit 4190df38 authored by zeroleak's avatar zeroleak
Browse files

show trace for BLOCKED threads

parent dd1df834
......@@ -12,6 +12,7 @@ import com.samourai.whirlpool.client.wallet.orchestrator.AbstractOrchestrator;
import java.util.Collection;
import java.util.Comparator;
import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -101,6 +102,10 @@ public class CliStatusInteractiveOrchestrator extends AbstractOrchestrator {
int i = 0;
for (Thread t : threadSet) {
log.info("#" + i + " " + t + ":" + "" + t.getState());
// show trace for BLOCKED
if (Thread.State.BLOCKED.equals(t.getState())) {
log.info(StringUtils.join(t.getStackTrace(), "\n"));
}
i++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment