Issue Details (XML | Word | Printable)

Key: OPENJPA-158
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Assignee: Unassigned
Reporter: Patrick Linskey
Votes: 3
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenJPA

OpenJPA logs overly-verbose at INFO level

Created: 21/Feb/07 04:52 AM   Updated: 28/Jul/08 09:26 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.9.7

Time Tracking:
Not Specified

Resolution Date: 27/Feb/07 02:11 AM


 Description  « Hide
OpenJPA currently outputs rather a lot of INFO-level messages, especially when using runtime enhancement. It would be nice to quiet things down a bit.

In particular, the following statements from a 'mvn package' run seem TRACE-worthy:

0 test INFO [main] openjpa.MetaData - Found 2 classes with metadata in 0 milliseconds.
0 test INFO [main] openjpa.MetaData - Parsing class "org.apache.openjpa.persistence.query.ManyOneEntity".
0 test INFO [main] openjpa.MetaData - Parsing package "org.apache.openjpa.persistence.query.ManyOneEntity".
10 test INFO [main] openjpa.MetaData - Parsing class "org.apache.openjpa.persistence.query.ManyOneEntitySub".
10 test INFO [main] openjpa.jdbc.Schema - Reading table information for schema name "null", table name "ManyOneEntity".
10 test INFO [main] openjpa.jdbc.Schema - Reading table information for schema name "null", table name "OPENJPA_SEQUENCE_TABLE".
10 test INFO [main] openjpa.jdbc.Schema - Reading sequence information for schema "null", sequence name "null".

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Dain Sundstrom added a comment - 22/Feb/07 05:27 PM
+1

With this change I will be able to lower the log level in OpenEJB to INFO. Currently it is set to WARN due to the extreme number of messages you get from even a small JPA application.

Marc Prud'hommeaux added a comment - 25/Feb/07 11:35 AM

+1. I've thought for a while that metadata parsing should be TRACE
messages.





Repository Revision Date User Message
ASF #512107 Tue Feb 27 01:59:42 UTC 2007 pcl OPENJPA-158 -- reduced log level to TRACE for a variety of enhancement and metadata related messages
Files Changed
MODIFY /incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingParser.java
MODIFY /incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java
MODIFY /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/AbstractCFMetaDataFactory.java
MODIFY /incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/meta/XMLMetaDataParser.java
MODIFY /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java
MODIFY /incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java
MODIFY /incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java
MODIFY /incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/AnnotationPersistenceMappingParser.java

Patrick Linskey made changes - 27/Feb/07 02:11 AM
Field Original Value New Value
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Patrick Linskey added a comment - 27/Feb/07 02:12 AM
I didn't do an exhaustive examination of info messages; I just looked at the output from 'mvn clean package'. Therefore, there might be other inappropriately-verbose messages out there.

Patrick Linskey made changes - 01/Mar/07 02:13 AM
Fix Version/s 0.9.7 [ 12312340 ]
Michael Dick added a comment - 28/Jul/08 09:26 PM
This is old, fixed and I voted for it a long time ago. Hopefully closing it will remove it from the list of "my votes" on the main JIRA page ;-)

Michael Dick made changes - 28/Jul/08 09:26 PM
Status Resolved [ 5 ] Closed [ 6 ]