aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/Settings.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/Settings.java')
-rw-r--r--juick-www/src/main/java/com/juick/www/Settings.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-www/src/main/java/com/juick/www/Settings.java b/juick-www/src/main/java/com/juick/www/Settings.java
index 67f001b6..0d427efe 100644
--- a/juick-www/src/main/java/com/juick/www/Settings.java
+++ b/juick-www/src/main/java/com/juick/www/Settings.java
@@ -28,6 +28,8 @@ import com.mitchellbosecke.pebble.template.PebbleTemplate;
import net.coobird.thumbnailator.Thumbnails;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
@@ -53,8 +55,6 @@ import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import java.util.logging.Level;
-import java.util.logging.Logger;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
@@ -63,7 +63,7 @@ import java.util.stream.IntStream;
* @author Ugnich Anton
*/
public class Settings {
- private static final Logger logger = Logger.getLogger(Settings.class.getName());
+ private static final Logger logger = LoggerFactory.getLogger(Settings.class);
private final String imgPath;
public Settings(String avatarsPath) {
@@ -218,7 +218,7 @@ public class Settings {
"<p><a href=\"/settings\">Back</a></p>";
} catch (MessagingException ex) {
- logger.log(Level.SEVERE, "mail exception", ex);
+ logger.error("mail exception", ex);
response.sendError(500);
return;
}