cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomek...@apache.org
Subject svn commit: r979820 - in /cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/browser/client: LogBrowser.java view/BrowseViewImpl.java
Date Tue, 27 Jul 2010 19:31:24 GMT
Author: tomekopo
Date: Tue Jul 27 19:31:24 2010
New Revision: 979820

URL: http://svn.apache.org/viewvc?rev=979820&view=rev
Log:
Added basic exception basic handler and removed datetime, level from event details.

Modified:
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/browser/client/LogBrowser.java
    cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/browser/client/view/BrowseViewImpl.java

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/browser/client/LogBrowser.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/browser/client/LogBrowser.java?rev=979820&r1=979819&r2=979820&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/browser/client/LogBrowser.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/browser/client/LogBrowser.java
Tue Jul 27 19:31:24 2010
@@ -21,6 +21,7 @@ package org.apache.cxf.management.web.lo
 
 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.Window;
 
 import org.apache.cxf.management.web.logging.browser.client.presenter.PlaceManager;
 
@@ -28,6 +29,12 @@ public class LogBrowser implements Entry
     private final Injector injector = GWT.create(Injector.class);
 
     public void onModuleLoad() {
+        GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {
+
+            public void onUncaughtException(Throwable throwable) {
+                Window.alert(throwable.getMessage());
+            }
+        });
         PlaceManager pm = injector.getPlaceManager();
         pm.start();
     }

Modified: cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/browser/client/view/BrowseViewImpl.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/browser/client/view/BrowseViewImpl.java?rev=979820&r1=979819&r2=979820&view=diff
==============================================================================
--- cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/browser/client/view/BrowseViewImpl.java
(original)
+++ cxf/sandbox/logbrowser/rt/management-web/src/main/java/org/apache/cxf/management/web/logging/browser/client/view/BrowseViewImpl.java
Tue Jul 27 19:31:24 2010
@@ -307,8 +307,6 @@ public class BrowseViewImpl extends Comp
         }
 
         StringBuilder sb = new StringBuilder();
-        sb.append("[").append(DT_FORMATTER.format(entry.getEventTimestamp())).append("]");
-        sb.append("[").append(entry.getLevel()).append("]");
 
         if (entry.getThreadName() != null) {
             sb.append("[").append(entry.getThreadName()).append("]");



Mime
View raw message