Skip to content

Commit f8168c3

Browse files
author
Matthew Fisher
committed
fix(controller): set celery log level from envvar
1 parent d2c97da commit f8168c3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

controller/bin/boot

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export ETCD="$HOST:$ETCD_PORT"
1515
export ETCD_PATH=${ETCD_PATH:-/deis/controller}
1616
export ETCD_TTL=${ETCD_TTL:-10}
1717

18+
export CELERY_LOG_LEVEL=${CELERY_LOG_LEVEL:-INFO}
19+
1820
# wait for etcd to be available
1921
until etcdctl --no-sync -C $ETCD ls >/dev/null 2>&1; do
2022
echo "waiting for etcd at $ETCD..."
@@ -55,7 +57,7 @@ chown -R deis:deis /var/log/deis
5557
sudo -E -u deis ./manage.py syncdb --migrate --noinput
5658

5759
# spawn celery workers in the background
58-
sudo -E -u deis celery worker --app=deis --loglevel=INFO --workdir=/app --pidfile=/tmp/celery.pid &
60+
sudo -E -u deis celery worker --app=deis --loglevel=$CELERY_LOG_LEVEL --workdir=/app --pidfile=/tmp/celery.pid &
5961

6062
# spawn a gunicorn server in the background
6163
sudo -E -u deis ./manage.py run_gunicorn -b 0.0.0.0 -w 8 -t 600 -n deis --log-level debug --pid=/tmp/gunicorn.pid --preload &

0 commit comments

Comments
 (0)