diff options
m--------- | deps/com.juick.xmpp | 0 | ||||
-rw-r--r-- | src/main/java/com/juick/CrosspostComponent.java | 5 | ||||
-rw-r--r-- | src/main/java/com/juick/PushComponent.java | 4 | ||||
-rw-r--r-- | src/main/java/com/juick/http/www/Main.java | 7 |
4 files changed, 5 insertions, 11 deletions
diff --git a/deps/com.juick.xmpp b/deps/com.juick.xmpp -Subproject 87ca4b93d426c19b6fdaeec038202485515606d +Subproject 1f08c01254fcbca79d1571ebb1ed2d68f86b850 diff --git a/src/main/java/com/juick/CrosspostComponent.java b/src/main/java/com/juick/CrosspostComponent.java index 4e4264cb..1df68493 100644 --- a/src/main/java/com/juick/CrosspostComponent.java +++ b/src/main/java/com/juick/CrosspostComponent.java @@ -152,10 +152,7 @@ public class CrosspostComponent implements ServletContextListener, Stream.Strea } @Override - public void onStreamFail(String msg) { - logger.warning("XMPP STREAM FAIL: " + msg); - } - + public void onStreamFail(Exception e) {logger.log(Level.SEVERE, "XMPP STREAM FAIL", e);} @Override public void onMessage(com.juick.xmpp.Message msg) { JuickMessage jmsg = (JuickMessage) msg.getChild(JuickMessage.XMLNS); diff --git a/src/main/java/com/juick/PushComponent.java b/src/main/java/com/juick/PushComponent.java index 9cc045e1..f4f766a1 100644 --- a/src/main/java/com/juick/PushComponent.java +++ b/src/main/java/com/juick/PushComponent.java @@ -152,9 +152,7 @@ public class PushComponent implements ServletContextListener, Stream.StreamListe } @Override - public void onStreamFail(String msg) { - logger.warning("XMPP STREAM FAIL: " + msg); - } + public void onStreamFail(Exception e) {logger.log(Level.SEVERE, "XMPP STREAM FAIL", e);} @Override public void onMessage(com.juick.xmpp.Message msg) { 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 |