*/
public static final String UIDL_REFRESH_TOKEN = "Vaadin-Refresh";
+ private final boolean debugLogging = false;
+
// will hold the UIDL security key (for XSS protection) once received
private String uidlSecurityKey = "init";
public void execute() {
MultiStepDuration updateDuration = new MultiStepDuration();
- VConsole.log(" * Dumping UIDL to the console");
- VConsole.dirUIDL(json, configuration);
+ if (debugLogging) {
+ VConsole.log(" * Dumping UIDL to the console");
+ VConsole.dirUIDL(json, configuration);
- updateDuration.logDuration(
- " * Dumping UIDL to the console completed", 10);
+ updateDuration.logDuration(
+ " * Dumping UIDL to the console completed", 10);
+ }
if (json.containsKey("locales")) {
VConsole.log(" * Handling locales");
* @see com.vaadin.terminal.gwt.client.ServerConnector#onUnregister()
*/
public void onUnregister() {
- VConsole.log("Unregistered connector " + Util.getConnectorString(this));
+ if (debugLogging) {
+ VConsole.log("Unregistered connector "
+ + Util.getConnectorString(this));
+ }
}
}