]> source.dussan.org Git - vaadin-framework.git/commitdiff
remote log address can now be overrided
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 21 Apr 2011 12:58:29 +0000 (12:58 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 21 Apr 2011 12:58:29 +0000 (12:58 +0000)
svn changeset:18431/svn branch:6.6

src/com/vaadin/terminal/gwt/client/VDebugConsole.java

index fdd7860a51812e0655f9dffe41ed4da56ac37042..100a6c32e7e2d1bc48cc87ac1bbea648ea6e75e8 100755 (executable)
@@ -248,8 +248,7 @@ public final class VDebugConsole extends VOverlay implements Console {
         public void execute() {
             if (!msgQueue.isEmpty()) {
                 RequestBuilder requestBuilder = new RequestBuilder(
-                        RequestBuilder.POST,
-                        "http://matin-vehje.local:8080/remotelog/");
+                        RequestBuilder.POST, getRemoteLogUrl());
                 try {
                     String requestData = "";
                     for (String str : msgQueue) {
@@ -278,9 +277,14 @@ public final class VDebugConsole extends VOverlay implements Console {
                 msgQueue.clear();
             }
         }
+
     };
     private VLazyExecutor sendToRemoteLog = new VLazyExecutor(350, doSend);
 
+    protected String getRemoteLogUrl() {
+        return "http://sun-vehje.local:8080/remotelog/";
+    }
+
     protected void remoteLog(String msg) {
         msgQueue.add(msg);
         if (msg.length() > 4) {