]> source.dussan.org Git - vaadin-framework.git/commitdiff
Enable Atmosphere client side debug logging with ?debug=push (#14534)
authorArtur Signell <artur@vaadin.com>
Wed, 17 Dec 2014 13:24:14 +0000 (15:24 +0200)
committerVaadin Code Review <review@vaadin.com>
Wed, 17 Dec 2014 13:41:03 +0000 (13:41 +0000)
Change-Id: I9081e4e1cec2a7916e644dc397aeab72809ccae5

client/src/com/vaadin/client/communication/AtmospherePushConnection.java

index 5073e0ce5d2cd77e1a06ca44faeb06dd39ce460d..a2c4dd832349e30a614c28aad057f6d884ab6ace 100644 (file)
@@ -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));