commit | c957384647373b59875cc0bf438b013c2751661c | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Sat Mar 05 10:29:25 2022 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Sat Mar 05 10:35:00 2022 +0000 |
tree | dcdc784f9453812ad471e857fb637f6f8316aeb3 | |
parent | 905c08b97ae8264a8f2e7ddb210be3d6e8316932 [diff] |
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())); } }