summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2014-12-17 15:24:14 +0200
committerVaadin Code Review <review@vaadin.com>2014-12-17 13:41:03 +0000
commit4e2dcaf6e176f114c67839d314de40bd5ddbc259 (patch)
tree9cd277aafb9fe821f55720478f82bf53b6a27156
parentbd5536edb51e67e6941ddd418c0fb2793ea00abf (diff)
downloadvaadin-framework-4e2dcaf6e176f114c67839d314de40bd5ddbc259.tar.gz
vaadin-framework-4e2dcaf6e176f114c67839d314de40bd5ddbc259.zip
Enable Atmosphere client side debug logging with ?debug=push (#14534)
Change-Id: I9081e4e1cec2a7916e644dc397aeab72809ccae5
-rw-r--r--client/src/com/vaadin/client/communication/AtmospherePushConnection.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/communication/AtmospherePushConnection.java b/client/src/com/vaadin/client/communication/AtmospherePushConnection.java
index 5073e0ce5d..a2c4dd8323 100644
--- a/client/src/com/vaadin/client/communication/AtmospherePushConnection.java
+++ b/client/src/com/vaadin/client/communication/AtmospherePushConnection.java
@@ -22,6 +22,7 @@ import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.user.client.Command;
+import com.google.gwt.user.client.Window.Location;
import com.vaadin.client.ApplicationConfiguration;
import com.vaadin.client.ApplicationConnection;
import com.vaadin.client.ApplicationConnection.CommunicationErrorHandler;
@@ -147,6 +148,10 @@ public class AtmospherePushConnection implements PushConnection {
this.errorHandler = errorHandler;
config = createConfig();
+ String debugParameter = Location.getParameter("debug");
+ if ("push".equals(debugParameter)) {
+ config.setStringValue("logLevel", "debug");
+ }
for (String param : pushConfiguration.parameters.keySet()) {
config.setStringValue(param,
pushConfiguration.parameters.get(param));