Skip to content

Commit bbdbb16

Browse files
yaauielogstashmachine
authored andcommitted
entrypoint: avoid polluting stdout (#17125)
routes output from setup-related functions to stderr, so that stdout can include only the output of the actual program. (cherry picked from commit 91258c3)
1 parent 5109867 commit bbdbb16

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bin/logstash.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set params='%*'
66
if "%1" == "-V" goto version
77
if "%1" == "--version" goto version
88

9-
call "%~dp0setup.bat" || exit /b 1
9+
1>&2 (call "%~dp0setup.bat") || exit /b 1
1010
if errorlevel 1 (
1111
if not defined nopauseonerror (
1212
pause

bin/logstash.lib.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ setup_vendored_jruby() {
186186
}
187187

188188
setup() {
189-
setup_java
190-
setup_vendored_jruby
189+
>&2 setup_java
190+
>&2 setup_vendored_jruby
191191
}
192192

193193
ruby_exec() {

0 commit comments

Comments
 (0)