Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1148

-Dswarm.logging=<level> broken, unable to set root log level

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2017.3.2
    • Fix Version/s: 2017.3.3
    • Component/s: None
    • Labels:
      None

      Description

      Using short style swarm.logging sysprop causes:

       java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      	at java.lang.String.substring(String.java:1931)
      	at org.wildfly.swarm.logging.LoggingFraction.applyDefaults(LoggingFraction.java:79)
      	at org.wildfly.swarm.logging.LoggingFraction.applyDefaults(LoggingFraction.java:68)
      	at org.wildfly.swarm.logging.LoggingFraction.applyDefaults(LoggingFraction.java:43)
      	at org.wildfly.swarm.container.runtime.cdi.configurable.ConfigurableFractionBean.<init>(ConfigurableFractionBean.java:33)
      	at org.wildfly.swarm.container.runtime.cdi.FractionProducingExtension.lambda$afterBeanDiscovery$1(FractionProducingExtension.java:99)
      

      Using a logger name (e.g. -Dswarm.logging.myLogger=INFO is fine, so just seems to be root logger.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                dansiviter Daniel Siviter
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: