Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-928

Optional includes still throw errors for classpath resources

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.1.0
    • 1.0.13
    • logback-core
    • None
    • java version "1.7.0_19"
      OpenJDK Runtime Environment (fedora-2.3.9.1.fc18-x86_64)
      OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

    Description

      I have an optional include that references a resource on the classpath. In my production builds I don't include that resource at all. However, Logback is printing the following message:

      16:22:35,720 |-ERROR in ch.qos.logback.core.joran.action.IncludeAction - Could not find resource corresponding to [logback-dev.xml]

      Looking at IncludeAction it looks like there should be a if(!optional) around the code in the catch portion of the resourceAsURL.

      I'll see if I can't get a pull request out there soon.

      Attachments

        Activity

          People

            tony19 Tony Trinh
            awood Alex Wood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: