aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/UserQueries.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-01-10 16:19:30 +0300
committerGravatar Vitaly Takmazov2016-01-10 16:19:30 +0300
commit439d42ef6d60f0a535fdfa2457da8417b70d966a (patch)
tree190ec750a1c3520743965afe8b6b015e9176bb95 /src/main/java/com/juick/server/UserQueries.java
parent2713251c8503f6a0b5ba7cb45f91cf71fa8f81b2 (diff)
ShowQueries
Diffstat (limited to 'src/main/java/com/juick/server/UserQueries.java')
-rw-r--r--src/main/java/com/juick/server/UserQueries.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/juick/server/UserQueries.java b/src/main/java/com/juick/server/UserQueries.java
index cb192b73..767a68d2 100644
--- a/src/main/java/com/juick/server/UserQueries.java
+++ b/src/main/java/com/juick/server/UserQueries.java
@@ -27,6 +27,7 @@ import java.sql.Statement;
import java.util.ArrayList;
import java.util.Random;
import java.util.UUID;
+import java.util.logging.Level;
import java.util.logging.Logger;
/**
@@ -641,7 +642,7 @@ public class UserQueries {
preparedStatement.setString(3, JID);
return preparedStatement.executeUpdate() >= 0;
} catch (SQLException e) {
- e.printStackTrace();
+ logger.log(Level.SEVERE, "sql error", e);
} finally {
Utils.finishSQL(null, preparedStatement);
}