Commit e2fd3e63 authored by zeroleak's avatar zeroleak
Browse files

disable statusOrchestrator when redirecting output

parent 3f9dce93
......@@ -39,7 +39,7 @@ public class CliStatusOrchestrator extends AbstractOrchestrator {
.start();
}
public void interactive() {
private void interactive() {
while (true) {
try {
Character car = CliUtils.readChar();
......
......@@ -164,10 +164,13 @@ public class CliService {
}
private void keepRunning() {
// log status
this.cliStatusOrchestrator =
new CliStatusOrchestrator(CLI_STATUS_DELAY, cliWalletService, cliConfig);
this.cliStatusOrchestrator.start();
// disable statusOrchestrator when redirecting output
if (System.console() != null) {
// log status
this.cliStatusOrchestrator =
new CliStatusOrchestrator(CLI_STATUS_DELAY, cliWalletService, cliConfig);
this.cliStatusOrchestrator.start();
}
}
private String authenticate() {
......
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