Skip to content

Commit

Permalink
Only use System.out for logging to keep order of logs (https://stacko…
Browse files Browse the repository at this point in the history
  • Loading branch information
TCreutzenberg committed Aug 9, 2024
1 parent 14e200d commit a985933
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ public void log (String tag, String message, Throwable exception) {

@Override
public void error (String tag, String message) {
System.err.println("[" + tag + "] " + message);
System.out.println("[" + tag + "] " + message);
}

@Override
public void error (String tag, String message, Throwable exception) {
System.err.println("[" + tag + "] " + message);
exception.printStackTrace(System.err);
System.out.println("[" + tag + "] " + message);
exception.printStackTrace(System.out);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ public void log (String tag, String message, Throwable exception) {

@Override
public void error (String tag, String message) {
System.err.println("[" + tag + "] " + message);
System.out.println("[" + tag + "] " + message);
}

@Override
public void error (String tag, String message, Throwable exception) {
System.err.println("[" + tag + "] " + message);
exception.printStackTrace(System.err);
System.out.println("[" + tag + "] " + message);
exception.printStackTrace(System.out);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ public void log (String tag, String message, Throwable exception) {

@Override
public void error (String tag, String message) {
System.err.println("[" + tag + "] " + message);
System.out.println("[" + tag + "] " + message);
}

@Override
public void error (String tag, String message, Throwable exception) {
System.err.println("[" + tag + "] " + message);
exception.printStackTrace(System.err);
System.out.println("[" + tag + "] " + message);
exception.printStackTrace(System.out);
}

@Override
Expand Down

0 comments on commit a985933

Please sign in to comment.