Allow skin uploader to log messages instead of closing the connection

This commit is contained in:
Tim203 2021-04-17 17:40:53 +02:00
parent 11b10e2857
commit 14894c8f27
No known key found for this signature in database
GPG key ID: 064EE9F5BF7C3EE8

View file

@ -132,13 +132,13 @@ public final class FloodgateSkinUploader {
String logMessage = node.get("message").asText();
switch (node.get("priority").asInt()) {
case -1:
logger.debug("Got debug message from skin uploader: " + logMessage);
logger.debug("Got a message from skin uploader: " + logMessage);
break;
case 0:
logger.info("Got info message from skin uploader: " +logMessage);
logger.info("Got a message from skin uploader: " +logMessage);
break;
case 1:
logger.error("Got error message from skin uploader: " + logMessage);
logger.error("Got a message from skin uploader: " + logMessage);
break;
default:
logger.info(logMessage);