diff --git a/scripts/boot.sh b/scripts/boot.sh index d2cc4a064..91ad5256a 100644 --- a/scripts/boot.sh +++ b/scripts/boot.sh @@ -2,9 +2,17 @@ args=("$@") if [ "$DD_EXPERIMENTAL_ENABLE_PROXY" == "true" ] then - echo "[bootstrap] DD_EXPERIMENTAL_ENABLE_PROXY is true" - echo "[bootstrap] orignal AWS_LAMBDA_RUNTIME_API $AWS_LAMBDA_RUNTIME_API" + if [ grep -ix "$DD_LOG_LEVEL" <<< "debug" ] + then + echo "[bootstrap] DD_EXPERIMENTAL_ENABLE_PROXY is true" + echo "[bootstrap] original AWS_LAMBDA_RUNTIME_API value is $AWS_LAMBDA_RUNTIME_API" + fi + export AWS_LAMBDA_RUNTIME_API="127.0.0.1:9000" - echo "[bootstrap] rerouting to $AWS_LAMBDA_RUNTIME_API" + + if [ grep -ix "$DD_LOG_LEVEL" <<< "debug" ] + then + echo "[bootstrap] rerouting AWS_LAMBDA_RUNTIME_API to $AWS_LAMBDA_RUNTIME_API" + fi fi exec "${args[@]}" \ No newline at end of file