Skip to content

Commit

Permalink
fix: allow for KSQL_GC_LOG_OPTS env variable to be passed through (#7577
Browse files Browse the repository at this point in the history
)

Co-authored-by: Tom E. Tomlinson <[email protected]>
  • Loading branch information
thomas-tomlinson and Tom E. Tomlinson authored May 27, 2021
1 parent 8a6412b commit aa2ed0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/ksql-run-class
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ while [ $# -gt 0 ]; do
shift 2
;;
-loggc)
GC_LOG_ENABLED="true"
if [ -z "$KSQL_GC_LOG_OPTS" ]; then
GC_LOG_ENABLED="true"
fi
shift
;;
-daemon)
Expand All @@ -134,7 +136,6 @@ done
# GC options
GC_FILE_SUFFIX='-gc.log'
GC_LOG_FILE_NAME=''
KSQL_GC_LOG_OPTS=""
if [ "x$GC_LOG_ENABLED" = "xtrue" ]; then
GC_LOG_FILE_NAME=$DAEMON_NAME$GC_FILE_SUFFIX
# The first segment of the version number, which is '1' for releases before Java 9
Expand Down

0 comments on commit aa2ed0a

Please sign in to comment.