From 622c40f1888f10e23460559f90f12b9bdc534a4a Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Thu, 5 Dec 2024 00:28:35 +1000 Subject: [PATCH] Change err.println to Logging.error --- .../me/cortex/voxy/common/thread/ServiceThreadPool.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/cortex/voxy/common/thread/ServiceThreadPool.java b/src/main/java/me/cortex/voxy/common/thread/ServiceThreadPool.java index 90ca02d4..6bcbfef0 100644 --- a/src/main/java/me/cortex/voxy/common/thread/ServiceThreadPool.java +++ b/src/main/java/me/cortex/voxy/common/thread/ServiceThreadPool.java @@ -1,5 +1,7 @@ package me.cortex.voxy.common.thread; +import me.cortex.voxy.common.Logger; + import java.util.concurrent.Semaphore; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; @@ -121,11 +123,11 @@ public class ServiceThreadPool { while (true) { var ref = this.serviceSlices; if (ref.length == 0) { - System.err.println("Service worker tried to run but had 0 slices"); + Logger.error("Service worker tried to run but had 0 slices"); break; } if (attempts-- == 0) { - System.err.println("Unable to execute service after many attempts, releasing"); + Logger.warn("Unable to execute service after many attempts, releasing"); try { Thread.sleep(10); } catch (InterruptedException e) {