Bug 1072224

Summary: [QE] (6.2.x) Don't log output of ./standalone.sh --help invocation
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: LoggingAssignee: James Perkins <jperkins>
Status: CLOSED CURRENTRELEASE QA Contact: Nikoleta Hlavickova <nziakova>
Severity: medium Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.2CC: brian.stansberry, cdewolf, jcacek, kkhan, myarboro
Target Milestone: CR2   
Target Release: EAP 6.2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1069514 Environment:
Last Closed: 2014-06-09 12:48:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1069514    
Bug Blocks: 1067532    

Description Petr Kremensky 2014-03-04 07:00:30 UTC
+++ This bug was initially created as a clone of Bug #1069514 +++

Description of problem:
 There is a difference between output of standalone.sh --help and help message of other tools/scipts. Help message of standalone help is printed via logger, but it should be sent directly to stdout.

Version-Release number of selected component (if applicable):
 EAP 6.3.0.DR0

How reproducible:
 Always

Steps to Reproduce:
 1. run ./standalone.sh --help

Actual results:
08:40:43,613 INFO  [stdout] (main) 
08:40:43,613 INFO  [stdout] (main) Usage: standalone.sh [args...]
08:40:43,614 INFO  [stdout] (main) where args include:
08:40:43,614 INFO  [stdout] (main)     --admin-only                        Set the server's running type to 
08:40:43,614 INFO  [stdout] (main)                                         ADMIN_ONLY causing it to open 
08:40:43,615 INFO  [stdout] (main)                                         administrative interfaces and accept 
08:40:43,615 INFO  [stdout] (main)                                         management requests but not start other 
08:40:43,616 INFO  [stdout] (main)                                         runtime services or accept end user 
08:40:43,616 INFO  [stdout] (main)                                         requests.
....
It's looking really strange and user cannot use this output directly without editing it

Expected results:
Same as help message of other commands:

Usage: standalone.sh [args...]
where args include:
    --admin-only                        Set the server's running type to 
                                        ADMIN_ONLY causing it to open 
                                        administrative interfaces and accept 
                                        management requests but not start other 
                                        runtime services or accept end user 
                                        requests.
...

--- Additional comment from James Perkins on 2014-02-27 13:24:55 EST ---

Should be an easy fix. I've already done this on WildFly https://github.com/wildfly/wildfly/commit/643e509807a7f80f8c6fb1c5a9ced1b53271c756. I can just cherry-pick it in.

--- Additional comment from James Perkins on 2014-02-27 13:53:55 EST ---

Pull request sent https://github.com/jbossas/jboss-eap/pull/985. Couldn't cherry-pick it, but it was easy enough to replicate.

Comment 3 Nikoleta Hlavickova 2014-05-05 13:07:59 UTC
Verified with EAP 6.2.3.CP.CR2