aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/http/www/Main.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2015-12-29 00:36:41 +0300
committerGravatar Vitaly Takmazov2015-12-29 00:36:41 +0300
commitc0cc0afdd385bd11a381e976280d473bba2f468a (patch)
tree5439a32353ca9a23778e344b1e01826c46b7eb2d /src/main/java/com/juick/http/www/Main.java
parent3a07a59e00a177d1adc179575b1ded8d763ea292 (diff)
update xmpp library to see stack trace
Diffstat (limited to 'src/main/java/com/juick/http/www/Main.java')
-rw-r--r--src/main/java/com/juick/http/www/Main.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/com/juick/http/www/Main.java b/src/main/java/com/juick/http/www/Main.java
index c36eccfa..cc4edd49 100644
--- a/src/main/java/com/juick/http/www/Main.java
+++ b/src/main/java/com/juick/http/www/Main.java
@@ -29,6 +29,7 @@ import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;
+import java.util.logging.Level;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
@@ -124,13 +125,11 @@ public class Main extends HttpServlet implements Stream.StreamListener {
}
@Override
- public void onStreamFail(String msg) {
- System.err.println("XMPP STREAM FAIL: " + msg);
- }
+ public void onStreamFail(Exception e) {log("XMPP STREAM FAIL", e);}
@Override
public void onStreamReady() {
- System.err.println("XMPP STREAM READY");
+ log("XMPP STREAM READY");
}
@Override