Skip to content

Commit 0e63e5a

Browse files
committed
debug
1 parent 95a826c commit 0e63e5a

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

scripts/aws/entrypoint.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ done
3939

4040
DEBUG_MODE=$(jq -r ".debug_mode" < "${OVERRIDES_CONFIG}")
4141

42-
if [[ ! "$DEBUG_MODE" == "true" ]]; then
42+
if [[ "$DEBUG_MODE" == "true" ]]; then
43+
LOGBACK_CONF="./conf/logback-debug.xml"
44+
else
45+
LOGBACK_CONF="./conf/logback.xml"
4346
# -- setup syslog-ng
4447
echo "Starting syslog-ng..."
4548
/usr/sbin/syslog-ng --verbose
@@ -97,11 +100,6 @@ fi
97100
cd /app
98101

99102
# -- start operator
100-
if [[ "$DEBUG_MODE" == "true" ]]; then
101-
LOGBACK_CONF="./conf/logback-debug.xml"
102-
else
103-
LOGBACK_CONF="./conf/logback.xml"
104-
fi
105103
echo "Starting Java application..."
106104
java \
107105
-XX:MaxRAMPercentage=95 -XX:-UseCompressedOops -XX:+PrintFlagsFinal \

0 commit comments

Comments
 (0)