OpenJPA
  1. OpenJPA
  2. OPENJPA-158

OpenJPA logs overly-verbose at INFO level

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.7
    • Component/s: None
    • Labels:
      None

      Description

      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".

        Activity

        Hide
        Dain Sundstrom added a comment -

        +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.

        Show
        Dain Sundstrom added a comment - +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.
        Hide
        Marc Prud'hommeaux added a comment -

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

        Show
        Marc Prud'hommeaux added a comment - +1. I've thought for a while that metadata parsing should be TRACE messages.
        Hide
        Patrick Linskey added a comment -

        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.

        Show
        Patrick Linskey added a comment - 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.
        Hide
        Michael Dick added a comment -

        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

        Show
        Michael Dick added a comment - 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

          People

          • Assignee:
            Unassigned
            Reporter:
            Patrick Linskey
          • Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development