Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Whirlpool
whirlpool-client-cli
Commits
4190df38
Commit
4190df38
authored
Apr 03, 2020
by
zeroleak
Browse files
show trace for BLOCKED threads
parent
dd1df834
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/main/java/com/samourai/whirlpool/cli/run/CliStatusInteractiveOrchestrator.java
...i/whirlpool/cli/run/CliStatusInteractiveOrchestrator.java
+5
-0
No files found.
src/main/java/com/samourai/whirlpool/cli/run/CliStatusInteractiveOrchestrator.java
View file @
4190df38
...
...
@@ -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
++;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment