[jboss-jira] [JBoss JIRA] (WFCORE-937) --std-out=discard for embedded host controller doesn't work
James Perkins (JIRA)
issues at jboss.org
Tue Sep 22 13:50:00 EDT 2015
[ https://issues.jboss.org/browse/WFCORE-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13111388#comment-13111388 ]
James Perkins commented on WFCORE-937:
--------------------------------------
The {{org.jboss.logmanager.console.ConsoleHandler}} initiates a static [{{stdout}} and {{stderr}}|https://github.com/jboss-logging/jboss-logmanager/blob/master/src/main/java/org/jboss/logmanager/handlers/ConsoleHandler.java#L35-L36] field. Since this class has already been initiated, it's using the "correct"/default `System.out` stream.
In the [{{EmbedHostControllerHandler.configureLogContext()}}|https://github.com/wildfly/wildfly-core/blob/master/cli/src/main/java/org/jboss/as/cli/embedded/EmbedHostControllerHandler.java#L258-L278] we might need to exclude the console handler if `--std-out=discard` was defined. We should do this through the `LogContextConfiguration` API which I can help with if needed.
> --std-out=discard for embedded host controller doesn't work
> -----------------------------------------------------------
>
> Key: WFCORE-937
> URL: https://issues.jboss.org/browse/WFCORE-937
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI, Domain Management
> Affects Versions: 2.0.0.Beta4
> Reporter: Petr Kremensky
> Assignee: Ken Wills
> Fix For: 2.0.0.CR4
>
>
> Embedded host controller always prints the logs to the console no matter which --std-out= value I choose.
> {noformat}
> [disconnected /] embed-host-controller --std-out=discard
> 09:22:06,627 INFO [org.jboss.modules] (AeshProcess: 1) JBoss Modules version 1.4.3.Final
> 09:22:06,733 INFO [org.jboss.msc] (AeshProcess: 1) JBoss MSC version 1.2.6.Final
> 09:22:06,758 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: EAP 7.0.0.Alpha1 (WildFly Core 2.0.0.Beta4) starting
> 09:22:07,769 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=default/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
> 09:22:07,799 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=ha/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
> 09:22:07,824 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=full/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
> 09:22:07,843 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'enabled' in the resource at address '/profile=full-ha/subsystem=datasources/data-source=ExampleDS' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
> 09:22:08,067 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: EAP 7.0.0.Alpha1 (WildFly Core 2.0.0.Beta4) (Host Controller) started in 1353ms - Started 25 of 27 services (8 services are lazy, passive or on-demand)
> [domain at embedded /] stop-embedded-host-controller
> 09:22:15,926 INFO [org.jboss.as] (MSC service thread 1-4) WFLYSRV0050: EAP 7.0.0.Alpha1 (WildFly Core 2.0.0.Beta4) stopped in 5ms
> [disconnected /] exit
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list