From: zharkovstas Date: Sun, 19 May 2019 07:10:03 +0000 (+0500) Subject: Return logging X-Git-Url: https://git.xn--bdkaa.com/?a=commitdiff_plain;h=dac83ef2a641bc3a576917a5e435cc0e737cb237;p=where-are-you.py.git Return logging --- diff --git a/app.py b/app.py index d2cf0a5..40ab0f6 100644 --- a/app.py +++ b/app.py @@ -383,8 +383,11 @@ def index(whatever): application = bottle.default_app() from paste import httpserver +from paste.translogger import TransLogger + +application = TransLogger(application) if os.environ.get('APP_LOCATION') == 'heroku': - httpserver.serve(application, host='0.0.0.0', port=int(os.environ.get("PORT", 5000))) + httpserver.serve(application, host='0.0.0.0', port=int(os.environ.get("PORT", 5000)), threadpool_workers=20, request_queue_size=20) else: httpserver.serve(application, host='localhost', port=8080, threadpool_workers=20, request_queue_size=20)