Complete moving to SFL4J
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-15 02:05:23 +01:00
parent 6bbaf3fe7e
commit 4c653fc93c
10 changed files with 72 additions and 65 deletions

View File

@@ -1,7 +1,8 @@
package wtf.beatrice.hidekobot.datasources;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import wtf.beatrice.hidekobot.HidekoBot;
import wtf.beatrice.hidekobot.util.Logger;
import java.io.IOException;
import java.io.InputStream;
@@ -12,7 +13,7 @@ public class PropertiesSource
private Properties properties = null;
private final String fileName = "default.properties";
private final Logger logger = new Logger(getClass());
private static final Logger LOGGER = LoggerFactory.getLogger(PropertiesSource.class);
public void load()
{
@@ -26,7 +27,7 @@ public class PropertiesSource
}
catch (IOException e) {
logger.log(e.getMessage());
LOGGER.error(e.getMessage());
HidekoBot.shutdown();
return;
}