Skip to content
Permalink
Browse files
AMBARI-24851 - Logsearch: debug mode using java 8 and 11 (#15)
  • Loading branch information
kasakrisz committed Oct 31, 2018
1 parent 879ba60 commit 845e0c64e061d24a7e0c016a954c2ace502f4e47
Showing 1 changed file with 6 additions and 1 deletion.
@@ -149,7 +149,12 @@ function start() {
LOGSEARCH_DEBUG_PORT=${LOGSEARCH_DEBUG_PORT:-"5005"}

if [ "$LOGSEARCH_DEBUG" = "true" ]; then
LOGSEARCH_JAVA_OPTS="$LOGSEARCH_JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=*:$LOGSEARCH_DEBUG_PORT,server=y,suspend=$LOGSEARCH_DEBUG_SUSPEND "
if [ $java_version == "8" ]; then
LOGSEARCH_DEBUG_ADDRESS=$LOGSEARCH_DEBUG_PORT
else
LOGSEARCH_DEBUG_ADDRESS="*:$LOGSEARCH_DEBUG_PORT"
fi
LOGSEARCH_JAVA_OPTS="$LOGSEARCH_JAVA_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,address=$LOGSEARCH_DEBUG_ADDRESS,server=y,suspend=$LOGSEARCH_DEBUG_SUSPEND "
fi

if [ "$LOGSEARCH_SSL" = "true" ]; then

0 comments on commit 845e0c6

Please sign in to comment.