Grails
  1. Grails
  2. GRAILS-10328

Log level in Log4jConfig#propertyMissing should not be 'ERROR'

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Java 1.7.0_25
      MacOS X 10.8

      Description

      This issue is related to following issues:

      For example, consider following Config.groovy:

      log4j = {root ->
          appenders {
              file name:'file', file: "logs/${appName}.log"
          }
      }
      

      When execute 'run-app' command, it displays error in the console:

      $ grails run-app
      | Error log4j:ERROR Property missing when configuring log4j: appName
      | Error log4j:ERROR Property missing when configuring log4j: appName
      | Server running. Browse to http://localhost:8080/demo
      

      The above result looks like error, but in fact it work correctly. The reason, 'appName' is unresolved in Log4jConfig, but after that it is resolved.

      So I think the log level in Log4jConfig#propertyMissing should be 'DEBUG' or off.

        Activity

        Hide
        Kazuki YAMAMOTO added a comment -
        Show
        Kazuki YAMAMOTO added a comment - Submitted a pull request: https://github.com/grails/grails-core/pull/385

          People

          • Assignee:
            Unassigned
            Reporter:
            Kazuki YAMAMOTO
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development