Skip to content

Commit

Permalink
Reduce jline default verbosity on CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Apr 25, 2024
1 parent b0db387 commit 88a2e73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jpos/src/main/java/org/jpos/q2/CLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

import java.io.*;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;

public class CLI implements Runnable {
final private static String DEFAULT_PROMPT = "q2> ";
Expand All @@ -47,6 +49,7 @@ public CLI(Q2 q2, String line, boolean keepRunning) throws IOException {
}

public CLI(Q2 q2, InputStream in, OutputStream rawout, String line, boolean keepRunning, boolean interactive) throws IOException {
Logger.getLogger("org.jline").setLevel(Level.WARNING);
this.q2 = q2;
PrintStream out = rawout instanceof PrintStream ? (PrintStream) rawout : new PrintStream(rawout);
ctx = buildCLIContext(in, out);
Expand Down

0 comments on commit 88a2e73

Please sign in to comment.