Uploaded image for project: 'JBoss Logging'
  1. JBoss Logging
  2. JBLOGGING-75

The Logger should catch format exceptions in case of wrong usage of the formatted message methods

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.1.0.GA
    • 3.1.0.CR1
    • None
    • None

    Description

      This avoids exceptions like:

      java.util.UnknownFormatConversionException: Conversion = '3'
      at java.util.Formatter.checkText(Formatter.java:2503)
      at java.util.Formatter.parse(Formatter.java:2485)
      at java.util.Formatter.format(Formatter.java:2414)
      at java.util.Formatter.format(Formatter.java:2367)
      at java.lang.String.format(String.java:2769)
      at org.jboss.logging.Log4jLogger.doLogf(Log4jLogger.java:48)
      at org.jboss.logging.Logger.logf(Logger.java:2143)
      at org.jboss.logging.DelegatingBasicLogger.debugf(DelegatingBasicLogger.java:227)
      at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:121)
      ...
      

      See also HHH-6817

      Attachments

        Activity

          People

            dlloyd@redhat.com David Lloyd
            hardy.ferentschik_jira Hardy Ferentschik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: