OpenJPA
  1. OpenJPA
  2. OPENJPA-355

OpenJPA Log4J factory incorrectly handles logging level

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: logging
    • Labels:
      None

      Description

      Setting the log4j level to DEBUG, is unable to display INFO, WARN or higher level logging level.

        Activity

        Hide
        Adrian Co added a comment -

        Attach is a patch to fix the issue.

        Either use _log.isEnabledFor(Level.FATAL) (in the patch)

        or swap the comparison. (i.e. Level.WARN >= _log.getEffectiveLevel().toInt() )

        Either one should work I think.

        Show
        Adrian Co added a comment - Attach is a patch to fix the issue. Either use _log.isEnabledFor(Level.FATAL) (in the patch) or swap the comparison. (i.e. Level.WARN >= _log.getEffectiveLevel().toInt() ) Either one should work I think.
        Hide
        Craig L Russell added a comment -

        svn commit
        Sending openjpa-lib/src/main/java/org/apache/openjpa/lib/log/Log4JLogFactory.java
        Transmitting file data .
        Committed revision 573653.

        Show
        Craig L Russell added a comment - svn commit Sending openjpa-lib/src/main/java/org/apache/openjpa/lib/log/Log4JLogFactory.java Transmitting file data . Committed revision 573653.
        Hide
        Craig L Russell added a comment -

        Remove 1.1.0 as an affected version.

        Show
        Craig L Russell added a comment - Remove 1.1.0 as an affected version.

          People

          • Assignee:
            Craig L Russell
            Reporter:
            Adrian Co
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development