Skip to content

Commit

Permalink
JGSS: Debug messages should to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
nicowilliams committed Apr 11, 2023
1 parent a42c4ac commit f2ea27d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ public class GSSUtil {

static void debug(String message) {
assert(message != null);
System.out.println(message);
if (DEBUG) {
System.err.println(message);
}
}

// NOTE: this method is only for creating Oid objects with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ static void debug(String message) {
if (message == null) {
throw new NullPointerException();
}
System.out.println(NAME + ": " + message);
if (DEBUG) {
System.err.println(NAME + ": " + message);
}
}

@SuppressWarnings("removal")
Expand Down

0 comments on commit f2ea27d

Please sign in to comment.