From 4e2dcaf6e176f114c67839d314de40bd5ddbc259 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 17 Dec 2014 15:24:14 +0200 Subject: Enable Atmosphere client side debug logging with ?debug=push (#14534) Change-Id: I9081e4e1cec2a7916e644dc397aeab72809ccae5 --- .../com/vaadin/client/communication/AtmospherePushConnection.java | 5 +++++ 1 file changed, 5 insertions(+) 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)); -- cgit v1.2.3