Browse Source

smaller ongoing votifier exceptions

Kajetan Johannes Hammerle 2 years ago
parent
commit
7c16d0ac91
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/me/km/Server.java

+ 2 - 1
src/main/java/me/km/Server.java

@@ -32,6 +32,7 @@ import java.security.PrivateKey;
 import java.security.spec.PKCS8EncodedKeySpec;
 import java.util.Base64;
 import javax.crypto.Cipher;
+import org.apache.logging.log4j.LogManager;
 
 @OnlyIn(Dist.DEDICATED_SERVER)
 public class Server {
@@ -89,7 +90,7 @@ public class Server {
                         });
                     } catch(Exception ex) {
                         if(!votifierSocket.isClosed()) {
-                            ex.printStackTrace();
+                            LogManager.getLogger().warn(ex.getMessage());
                         }
                     }
                 }