You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by fr...@apache.org on 2009/06/16 22:49:52 UTC
svn commit: r785387 - in /incubator/empire-db/trunk:
empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java
empire-db/src/test/resources/log4j.properties pom.xml
Author: francisdb
Date: Tue Jun 16 20:49:52 2009
New Revision: 785387
URL: http://svn.apache.org/viewvc?rev=785387&view=rev
Log:
hide stack traces for parsing objects to int, long, ...
less logging for unit tests (warn level)
new junit version 4.6
Modified:
incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java
incubator/empire-db/trunk/empire-db/src/test/resources/log4j.properties
incubator/empire-db/trunk/pom.xml
Modified: incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java?rev=785387&r1=785386&r2=785387&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java (original)
+++ incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java Tue Jun 16 20:49:52 2009
@@ -152,7 +152,7 @@
return Integer.parseInt(str);
} catch (Exception e)
{
- log.error(e.getMessage(), e);
+ log.warn(String.format("Cannot convert value [%s] to int!", v));
return defValue;
}
}
@@ -193,7 +193,7 @@
return Long.parseLong(str);
} catch (Exception e)
{
- log.error(e.getMessage(), e);
+ log.warn(String.format("Cannot convert value [%s] to long!", v));
return defValue;
}
}
@@ -232,7 +232,7 @@
return Double.parseDouble(val);
} catch (Exception e)
{
- log.error("Cannot convert value to double!", e);
+ log.warn(String.format("Cannot convert value [%s] to double!", v));
return defValue;
}
}
Modified: incubator/empire-db/trunk/empire-db/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/test/resources/log4j.properties?rev=785387&r1=785386&r2=785387&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/test/resources/log4j.properties (original)
+++ incubator/empire-db/trunk/empire-db/src/test/resources/log4j.properties Tue Jun 16 20:49:52 2009
@@ -1,3 +1,4 @@
-log4j.rootCategory=DEBUG, console
+log4j.rootCategory=WARN, console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
+log4j.appender.console.layout.conversionPattern = %d{ISO8601} %-5p [%c] - %m%n
Modified: incubator/empire-db/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/pom.xml?rev=785387&r1=785386&r2=785387&view=diff
==============================================================================
--- incubator/empire-db/trunk/pom.xml (original)
+++ incubator/empire-db/trunk/pom.xml Tue Jun 16 20:49:52 2009
@@ -264,7 +264,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>4.5</version>
+ <version>4.6</version>
</dependency>
</dependencies>
</dependencyManagement>