[jboss-jira] [JBoss JIRA] (AS7-4839) change-root-log-level command creates config in wrong place ?

Darrin Mison (JIRA) jira-events at lists.jboss.org
Sun May 20 04:45:17 EDT 2012


Darrin Mison created AS7-4839:
---------------------------------

             Summary: change-root-log-level command creates config in wrong place ?
                 Key: AS7-4839
                 URL: https://issues.jboss.org/browse/AS7-4839
             Project: Application Server 7
          Issue Type: Bug
          Components: CLI, Logging
    Affects Versions: 7.1.1.Final
            Reporter: Darrin Mison
            Assignee: Alexey Loubyansky


Starting with the following configuration:
{code}
[standalone at localhost:9999 /] /subsystem=logging/root-logger=ROOT:read-resource                              
{
    "outcome" => "success",
    "result" => {
        "filter" => undefined,
        "handlers" => [
            "CONSOLE",
            "FILE"
        ],
        "level" => undefined
    }
} 
{code}
I attempt to specify the log level using change-root-log-level command:


{code}
[standalone at localhost:9999 /] /subsystem=logging/root-logger=ROOT:change-root-log-level(level="DEBUG")
{"outcome" => "success"}
{code}

However instead of changing the value of {{level}} it adds a new {{root-logger}} element and sets it there.

{code}
[standalone at localhost:9999 /] /subsystem=logging/root-logger=ROOT:read-resource        
{
    "outcome" => "success",
    "result" => {
        "filter" => undefined,
        "handlers" => [
            "CONSOLE",
            "FILE"
        ],
        "level" => undefined,
        "root-logger" => {"level" => "DEBUG"}
    }
} 
{code}

This configuration isn't reflected in the management console or XML, nor does it have the intended affect on server behaviour.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list