Bug 1072224 - [QE] (6.2.x) Don't log output of ./standalone.sh --help invocation
Summary: [QE] (6.2.x) Don't log output of ./standalone.sh --help invocation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Logging
Version: 6.2.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: CR2
: EAP 6.2.3
Assignee: James Perkins
QA Contact: Nikoleta Hlavickova
Russell Dickenson
URL:
Whiteboard:
Depends On: 1069514
Blocks: eap62-cp03-blockers
TreeView+ depends on / blocked
 
Reported: 2014-03-04 07:00 UTC by Petr Kremensky
Modified: 2014-06-09 12:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1069514
Environment:
Last Closed: 2014-06-09 12:48:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-2899 0 Minor Resolved Help and error messages in Main classes should be printed raw 2014-07-30 12:35:49 UTC

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


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