Commit dc884eab authored by Gustavo Noronha Silva's avatar Gustavo Noronha Silva
Browse files

Make lava services logs go to stderr

Rather than sending the logs to a file in /var/log, make them all go
through stderr (the default used by logging.StreamHandler), so that
it can all be seen by using docker logs.
parent e1678c6f
......@@ -33,9 +33,9 @@ if [ -z $LOGLEVEL ]; then
LOGLEVEL=DEBUG
fi
/usr/bin/lava-server manage lava-publisher --level $LOGLEVEL --log-file /var/log/lava-server/lava-publisher.log --host '*' --port 8001 &
/usr/bin/lava-server manage lava-publisher --level $LOGLEVEL --log-file - --host '*' --port 8001 &
/usr/bin/lava-server manage lava-scheduler --level $LOGLEVEL --log-file /var/log/lava-server/lava-scheduler.log $EVENT_URL $IPV6 &
/usr/bin/lava-server manage lava-scheduler --level $LOGLEVEL --log-file - $EVENT_URL $IPV6 &
if [ -z $WORKERS ]; then
WORKERS=4
......@@ -49,4 +49,4 @@ if [ -z $BIND ]; then
BIND="--bind 0.0.0.0:8000"
fi
exec /usr/bin/gunicorn3 lava_server.wsgi --log-level $LOGLEVEL --log-file /var/log/lava-server/gunicorn.log -u lavaserver -g lavaserver --worker-class $WORKER_CLASS --workers $WORKERS $BIND $RELOAD $TIMEOUT
exec /usr/bin/gunicorn3 lava_server.wsgi --log-level $LOGLEVEL --log-file - -u lavaserver -g lavaserver --worker-class $WORKER_CLASS --workers $WORKERS $BIND $RELOAD $TIMEOUT
#!/bin/sh
exec /usr/bin/lava-worker $WORKER_NAME $URL $WS_URL $TOKEN $LOG_LEVEL $HTTP_TIMEOUT
exec /usr/bin/lava-worker $WORKER_NAME $URL $WS_URL $TOKEN --log-file - $LOG_LEVEL $HTTP_TIMEOUT
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment