зеркало из https://github.com/mozilla/subhub.git
made small fixes to enable-streaming.sh
This commit is contained in:
Родитель
7644add65f
Коммит
6e75c32bd7
|
@ -1,6 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -ex
|
if [ -n "$DEBUG" ]; then
|
||||||
|
PS4=':${LINENO}+'
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
|
||||||
source "env.sh"
|
source "env.sh"
|
||||||
source "install.sh"
|
source "install.sh"
|
||||||
|
@ -11,8 +14,7 @@ function enable_streaming(){
|
||||||
echo "usage: $1, One of more function names to enable log streaming."
|
echo "usage: $1, One of more function names to enable log streaming."
|
||||||
fi
|
fi
|
||||||
if [ -d "$NR_LAMBDA_DIRECTORY" ]; then
|
if [ -d "$NR_LAMBDA_DIRECTORY" ]; then
|
||||||
cd nr-lambda
|
(cd "$NR_LAMBDA_DIRECTORY" && ./newrelic-cloud stream-lambda-logs --regions "$AWS_REGION" --functions "$@")
|
||||||
sh newrelic-cloud stream-lambda-logs $1
|
|
||||||
else
|
else
|
||||||
echo "Please run install.sh first."
|
echo "Please run install.sh first."
|
||||||
fi
|
fi
|
||||||
|
|
Загрузка…
Ссылка в новой задаче