Bug 915317 - Unable to turn on/off logging handlers using enable()/disable() in CLI
Summary: Unable to turn on/off logging handlers using enable()/disable() in CLI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Logging
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER4
: EAP 6.1.0
Assignee: James Perkins
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-25 13:43 UTC by Petr Kremensky
Modified: 2013-07-23 18:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-23 18:36:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker AS7-6664 0 Major Resolved Unable to turn on/off logging handlers using enable()/disable() in CLI 2014-07-30 12:36:26 UTC

Description Petr Kremensky 2013-02-25 13:43:07 UTC
I am unable to use enable/disable operation in logging handlers.
 
[standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:read-resource
{
    "outcome" => "success",
    "result" => {
        "autoflush" => true,
        "enabled" => true,
        ...
    }
}

Calling disable() won't affect enabled attribute

[standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:disable()
{"outcome" => "success"}
[standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:read-resource
{
    "outcome" => "success",
    "result" => {
        "autoflush" => true,
        "enabled" => true,
        ...
    }
}

Must use write-attribute instead

[standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE/:write-attribute(name=enabled, value=false)
{"outcome" => "success"}
[standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:read-resource
{
    "outcome" => "success",
    "result" => {
        "autoflush" => true,
        "enabled" => false,
        ...
    }
}

Comment 1 Brian Stansberry 2013-03-02 02:07:26 UTC
James, please assign bz 915317 to yourself. Thanks.

Comment 2 JBoss JIRA Server 2013-03-08 19:44:57 UTC
James Perkins <jperkins> updated the status of jira AS7-6664 to Coding In Progress

Comment 4 JBoss JIRA Server 2013-03-11 18:56:19 UTC
James Perkins <jperkins> made a comment on jira AS7-6664

Closed PR to incorporate into a better change set.

Comment 6 Radim Hatlapatka 2013-03-27 13:57:11 UTC
The issue is not fixed in EAP 6.1.0 ER3

Comment 7 Petr Kremensky 2013-04-03 14:42:09 UTC
Verified on EAP 6.1.0 ER4


Note You need to log in before you can comment on or make changes to this bug.