Skip to content

Commit

Permalink
Remove headless environment warnings to reduce spam if methods are ca…
Browse files Browse the repository at this point in the history
…lled repeatedly
  • Loading branch information
FeldrinH committed Aug 25, 2024
1 parent ad43f37 commit 75e249a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/ee/ut/dendroloj/Dendrologist.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ public static void setArgumentCapture(boolean duringCall, boolean duringReturn)
public static synchronized void wakeUp() {
if (awake) return;

if (isHeadless()) {
System.err.println("Dendrologist: Running in headless environment. Ignoring call to wakeUp.");
} else {
if (!isHeadless()) {
// DebuggerTracer.init();
AgentTracer.init();
GraphGUI.initCallTreeGUI(uiScale);
Expand Down Expand Up @@ -116,7 +114,6 @@ public static <T> void drawBinaryTree(T root, Function<T, String> label, Functio
*/
public static <T> void drawTree(T root, Function<T, String> label, Function<T, List<T>> children) {
if (isHeadless()) {
System.err.println("Dendrologist: Running in headless environment. Ignoring call to drawTree.");
return;
}

Expand All @@ -138,7 +135,6 @@ public static <T> void drawTree(T root, Function<T, String> label, Function<T, L
*/
public static void drawGraph(GraphCanvas<?> graphCanvas) {
if (isHeadless()) {
System.err.println("Dendrologist: Running in headless environment. Ignoring call to drawGraph.");
return;
}

Expand Down

0 comments on commit 75e249a

Please sign in to comment.