diff options
author | 2018-04-07 10:43:35 +0100 | |
---|---|---|
committer | 2018-04-07 10:43:35 +0100 | |
commit | c43b15ce0727842e1388c0b6facefc3f7e73839c (patch) | |
tree | 4ebae8259ece9c1bafe378460c182c8c4956ba65 /gunicorn_config.py | |
parent | Add `FLASK_DEBUG` to travis.yml (diff) |
Fix logging in gunicorn_config
Diffstat (limited to 'gunicorn_config.py')
-rw-r--r-- | gunicorn_config.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gunicorn_config.py b/gunicorn_config.py index 7e17b0cc..e4b66135 100644 --- a/gunicorn_config.py +++ b/gunicorn_config.py @@ -1,12 +1,12 @@ # coding=utf-8 -def when_ready(_server): +def when_ready(server): """ server hook that only runs when the gunicorn master process loads """ - print("Creating tables...") + server.log.info("Creating tables...") from pysite.database import RethinkDB db = RethinkDB(loop_type=None) created = db.create_tables() - print(f"Created {created} tables.") + server.log.info(f"Created {created} tables.") |