Commit 03874de4 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Set log file handler to stdout

parent 7bd05f6d
Pipeline #34091 passed with stages
in 1 minute and 40 seconds
......@@ -7,7 +7,7 @@ ENV FLASK_APP import_api_app
EXPOSE 5000
ENTRYPOINT ["gunicorn"]
CMD ["--bind", "0.0.0.0:5000", "wsgi:app", "--log-level", "info"]
CMD ["--bind", "0.0.0.0:5000", "wsgi:app", "--log-level", "info", "--log-file", "/dev/stdout"]
RUN cd /usr/bin \
&& wget -q https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl \
......
......@@ -55,7 +55,7 @@ environ['HELM_EXPERIMENTAL_OCI'] = '1'
if __name__ != '__main__':
gunicorn_logger = logging.getLogger('gunicorn.error')
app.logger.handlers = gunicorn_logger.handlers
app.logger.setLevel(logging.INFO)
app.logger.setLevel(gunicorn_logger.level)
app.logger.removeHandler(default_handler)
app.logger.info('Starting production server')
......
Supports Markdown
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