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.





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.

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 ;-)