We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d77f8f commit 0da9550Copy full SHA for 0da9550
scripts/boot.sh
@@ -2,9 +2,17 @@
2
args=("$@")
3
if [ "$DD_EXPERIMENTAL_ENABLE_PROXY" == "true" ]
4
then
5
- echo "[bootstrap] DD_EXPERIMENTAL_ENABLE_PROXY is true"
6
- echo "[bootstrap] orignal AWS_LAMBDA_RUNTIME_API $AWS_LAMBDA_RUNTIME_API"
+ if [ grep -ix "$DD_LOG_LEVEL" <<< "debug" ]
+ then
7
+ echo "[bootstrap] DD_EXPERIMENTAL_ENABLE_PROXY is true"
8
+ echo "[bootstrap] original AWS_LAMBDA_RUNTIME_API value is $AWS_LAMBDA_RUNTIME_API"
9
+ fi
10
+
11
export AWS_LAMBDA_RUNTIME_API="127.0.0.1:9000"
- echo "[bootstrap] rerouting to $AWS_LAMBDA_RUNTIME_API"
12
13
14
15
+ echo "[bootstrap] rerouting AWS_LAMBDA_RUNTIME_API to $AWS_LAMBDA_RUNTIME_API"
16
17
fi
18
exec "${args[@]}"
0 commit comments