From 75f8c7a275d3fb740ab534a6efe97fa7ed06edb2 Mon Sep 17 00:00:00 2001 From: Emil Koutanov Date: Thu, 18 Jul 2019 22:19:44 +1000 Subject: [PATCH] Setting load factors --- .../main/java/com/obsidiandynamics/zerolog/JulZlgBridge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge-jul/src/main/java/com/obsidiandynamics/zerolog/JulZlgBridge.java b/bridge-jul/src/main/java/com/obsidiandynamics/zerolog/JulZlgBridge.java index f1e7323..fc7c1df 100644 --- a/bridge-jul/src/main/java/com/obsidiandynamics/zerolog/JulZlgBridge.java +++ b/bridge-jul/src/main/java/com/obsidiandynamics/zerolog/JulZlgBridge.java @@ -53,7 +53,7 @@ public static void uninstall() { */ public static Set uninstallAllHandlers() { final Logger root = getRootLogger(); - final Set stash = new HashSet<>(); + final Set stash = new HashSet<>(root.getHandlers().length, 1f); Arrays.stream(root.getHandlers()).forEach(handler -> { stash.add(handler); root.removeHandler(handler);