Fix Flogger formatting of exception in AutoAdjustCachesCommand Change-Id: I1b971e57ae5c1a77d61a0f609ca2e4c7b7d7a91f
diff --git a/src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/AutoAdjustCachesCommand.java b/src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/AutoAdjustCachesCommand.java index de41471..580bd98 100644 --- a/src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/AutoAdjustCachesCommand.java +++ b/src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/AutoAdjustCachesCommand.java
@@ -86,7 +86,7 @@ stderr.println(e.getLocalizedMessage()); throw e; } catch (IOException e) { - logger.atSevere().log("Could not create new cache", e); + logger.atSevere().withCause(e).log("Could not create new cache"); stderr.println(String.format("Could not create new cache : %s", e.getLocalizedMessage())); } }