Bug 1069514

Summary: [QE] (6.3.0) 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: Nidhi <nsriniva>
Priority: unspecified    
Version: 6.3.0CC: brian.stansberry, jcacek, kkhan, nsriniva
Target Milestone: DR2   
Target Release: EAP 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
In previous versions of JBoss EAP 6, using "help" argument with the shell script "standalone.sh" printed the help message(s) in log manager format instead of displaying them in plain text output stream (stdout). As a result it was difficult to use the output without extracting and editing the help messages. This issue has been fixed and the "help" argument with the shell script "standalone.sh" now displays the messages as plain text output.
Story Points: ---
Clone Of:
: 1072224 (view as bug list) Environment:
Last Closed: 2014-06-28 15:37:30 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:    
Bug Blocks: 1072224    

Description Petr Kremensky 2014-02-25 08:00:17 UTC
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.
...

Comment 1 James Perkins 2014-02-27 18:24:55 UTC
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.

Comment 3 Petr Kremensky 2014-03-10 08:54:44 UTC
Verified on EAP 6.3.0.DR2