Skip to content

Commit

Permalink
qa engine, utilities, fluent logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
soloturn committed Jan 29, 2024
1 parent 650673f commit f694dd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions engine/src/main/java/org/terasology/engine/utilities/Jvm.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public static void logClasspath(Logger aLogger) {
Matcher asMavenCache = MAVEN_CACHE.matcher(pathEntry);
if (asGradleCache.matches()) {
if (asGradleCache.group(1).contains(interestingGroup)) {
aLogger.debug("{}gradle:{}", indent, asGradleCache.group(2));
aLogger.atDebug().addArgument(indent).addArgument(() -> asGradleCache.group(2)).log("{}gradle:{}");
} else {
elidedCount++;
}
} else if (asMavenCache.matches()) {
aLogger.debug("{}maven:{}", indent, asMavenCache.group(1));
aLogger.atDebug().addArgument(indent).addArgument(() -> asMavenCache.group(1)).log("{}maven:{}");
} else {
String place = pathEntry;
if (pathEntry.startsWith(projectRoot)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void run() {
logger.error("Thread interrupted", e);
} catch (RuntimeException e) {
ThreadMonitor.addError(e);
logger.error("Error in thread {}", Thread.currentThread().getName(), e);
logger.atError().addArgument(Thread.currentThread().getName()).addArgument(e).log("Error in thread {}");
} catch (Error e) {
GameThread.asynch(() -> {
throw e; // re-throw on game thread to terminate the entire application
Expand Down

0 comments on commit f694dd3

Please sign in to comment.