From d2b1d8db0dea473ba04d9252183aca319595c2f4 Mon Sep 17 00:00:00 2001 From: Darkere Date: Sun, 17 Apr 2022 15:21:57 +0200 Subject: [PATCH] make logger static to improve performance --- .../refinedstorage/screen/grid/stack/FluidGridStack.java | 2 +- .../refinedstorage/screen/grid/stack/ItemGridStack.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/refinedmods/refinedstorage/screen/grid/stack/FluidGridStack.java b/src/main/java/com/refinedmods/refinedstorage/screen/grid/stack/FluidGridStack.java index f50908f24..9b1d93a4d 100644 --- a/src/main/java/com/refinedmods/refinedstorage/screen/grid/stack/FluidGridStack.java +++ b/src/main/java/com/refinedmods/refinedstorage/screen/grid/stack/FluidGridStack.java @@ -26,7 +26,7 @@ import java.util.stream.Collectors; public class FluidGridStack implements IGridStack { private static final String ERROR_PLACEHOLDER = ""; - private final Logger logger = LogManager.getLogger(getClass()); + private static final Logger logger = LogManager.getLogger(FluidGridStack.class); private final UUID id; private final FluidStack stack; diff --git a/src/main/java/com/refinedmods/refinedstorage/screen/grid/stack/ItemGridStack.java b/src/main/java/com/refinedmods/refinedstorage/screen/grid/stack/ItemGridStack.java index 1150e1d83..ff9804596 100644 --- a/src/main/java/com/refinedmods/refinedstorage/screen/grid/stack/ItemGridStack.java +++ b/src/main/java/com/refinedmods/refinedstorage/screen/grid/stack/ItemGridStack.java @@ -26,7 +26,7 @@ import java.util.stream.Collectors; public class ItemGridStack implements IGridStack { private static final String ERROR_PLACEHOLDER = ""; - private final Logger logger = LogManager.getLogger(getClass()); + private static final Logger logger = LogManager.getLogger(ItemGridStack.class); private final ItemStack stack; private UUID id; @Nullable