aboutsummaryrefslogtreecommitdiffstats
path: root/gunicorn_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'gunicorn_config.py')
-rw-r--r--gunicorn_config.py6
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.")