summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/data
diff options
context:
space:
mode:
authorJonatan Kronqvist <jonatan.kronqvist@itmill.com>2010-10-12 05:07:33 +0000
committerJonatan Kronqvist <jonatan.kronqvist@itmill.com>2010-10-12 05:07:33 +0000
commit7e5911687972a2cd0c316b94340810b055ddb106 (patch)
treec703593af29221d766c669dc598482965708a311 /src/com/vaadin/data
parent01fe9dbc7d502e91130bbdaf4d7ca138c597abd4 (diff)
downloadvaadin-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/data')
-rw-r--r--src/com/vaadin/data/util/MethodProperty.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/vaadin/data/util/MethodProperty.java b/src/com/vaadin/data/util/MethodProperty.java
index 394343aaf6..081833e361 100644
--- a/src/com/vaadin/data/util/MethodProperty.java
+++ b/src/com/vaadin/data/util/MethodProperty.java
@@ -9,6 +9,8 @@ import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.LinkedList;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import com.vaadin.data.Property;
import com.vaadin.util.SerializerHelper;
@@ -49,6 +51,8 @@ import com.vaadin.util.SerializerHelper;
public class MethodProperty<T> implements Property,
Property.ValueChangeNotifier, Property.ReadOnlyStatusChangeNotifier {
+ private static final Logger logger = Logger.getLogger(MethodProperty.class
+ .getName());
/**
* The object that includes the property the MethodProperty is bound to.
*/
@@ -146,11 +150,9 @@ public class MethodProperty<T> implements Property,
getMethod = null;
}
} catch (SecurityException e) {
- System.err.println("Internal deserialization error");
- e.printStackTrace();
+ logger.log(Level.SEVERE, "Internal deserialization error", e);
} catch (NoSuchMethodException e) {
- System.err.println("Internal deserialization error");
- e.printStackTrace();
+ logger.log(Level.SEVERE, "Internal deserialization error", e);
}
};