Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions scripts/boot.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
#!/bin/bash
args=("$@")

# lowercase DD_LOG_LEVEL
DD_LOG_LEVEL=$(echo "$DD_LOG_LEVEL" | tr '[:upper:]' '[:lower:]')

if [ "$DD_EXPERIMENTAL_ENABLE_PROXY" == "true" ]
then
if [ grep -ix "$DD_LOG_LEVEL" <<< "debug" ]
if [ "$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"

if [ grep -ix "$DD_LOG_LEVEL" <<< "debug" ]
if [ "$DD_LOG_LEVEL" == "debug" ]
then
echo "[bootstrap] rerouting AWS_LAMBDA_RUNTIME_API to $AWS_LAMBDA_RUNTIME_API"
fi
Expand Down