diff options
author | Jonatan Kronqvist <jonatan.kronqvist@itmill.com> | 2010-10-12 05:07:33 +0000 |
---|---|---|
committer | Jonatan Kronqvist <jonatan.kronqvist@itmill.com> | 2010-10-12 05:07:33 +0000 |
commit | 7e5911687972a2cd0c316b94340810b055ddb106 (patch) | |
tree | c703593af29221d766c669dc598482965708a311 /src/com/vaadin/tools | |
parent | 01fe9dbc7d502e91130bbdaf4d7ca138c597abd4 (diff) | |
download | vaadin-framework-7e5911687972a2cd0c316b94340810b055ddb106.tar.gz vaadin-framework-7e5911687972a2cd0c316b94340810b055ddb106.zip |
This is the implementation of the server-side logging feature
- Changed some loglevels according to review
- Don't log unecessary stacktraces in portlets
- printStackTrace:s replaced with JUL logging
- System.out and System.errs replaced with JUL logging
svn changeset:15493/svn branch:6.5
Diffstat (limited to 'src/com/vaadin/tools')
-rw-r--r-- | src/com/vaadin/tools/WidgetsetCompiler.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/com/vaadin/tools/WidgetsetCompiler.java b/src/com/vaadin/tools/WidgetsetCompiler.java index ab5e4ad9d3..9fe97ba12a 100644 --- a/src/com/vaadin/tools/WidgetsetCompiler.java +++ b/src/com/vaadin/tools/WidgetsetCompiler.java @@ -4,6 +4,8 @@ package com.vaadin.tools; import java.lang.reflect.Method; +import java.util.logging.Level; +import java.util.logging.Logger; import com.vaadin.terminal.gwt.widgetsetutils.WidgetSetBuilder; @@ -31,6 +33,9 @@ import com.vaadin.terminal.gwt.widgetsetutils.WidgetSetBuilder; */ public class WidgetsetCompiler { + private static final Logger logger = Logger + .getLogger(WidgetsetCompiler.class.getName()); + /** * @param args * same arguments as for com.google.gwt.dev.Compiler @@ -67,7 +72,8 @@ public class WidgetsetCompiler { String[].class); method.invoke(null, new Object[] { args }); } catch (Throwable thr) { - thr.printStackTrace(); + logger.log(Level.SEVERE, + "Widgetset compilation failed", thr); } } }; @@ -76,7 +82,7 @@ public class WidgetsetCompiler { runThread.join(); System.out.println("Widgetset compilation finished"); } catch (Throwable thr) { - thr.printStackTrace(); + logger.log(Level.SEVERE, "Widgetset compilation failed", thr); } } } |